No ticket, Includes cleanup. Spaces cleanup.

--HG--
branch : product-engine
meow-7.2.2
Sergei Litovchuk 2010-01-22 20:20:11 +02:00
parent 16b1af72b2
commit 09e9cdeb2e
2 changed files with 18 additions and 24 deletions

View File

@ -34,26 +34,20 @@
#include "llpanelplaceinfo.h" #include "llpanelplaceinfo.h"
#include "roles_constants.h"
#include "llsdutil.h" #include "llsdutil.h"
#include "llsecondlifeurls.h"
#include "llsdutil_math.h" #include "llsdutil_math.h"
#include "llregionhandle.h" #include "llregionhandle.h"
#include "message.h"
#include "lliconctrl.h" #include "lliconctrl.h"
#include "lltextbox.h" #include "lltextbox.h"
#include "llagent.h" #include "llagent.h"
#include "llavatarpropertiesprocessor.h"
#include "llexpandabletextbox.h" #include "llexpandabletextbox.h"
#include "llpanelpick.h" #include "llpanelpick.h"
#include "lltexturectrl.h" #include "lltexturectrl.h"
#include "llviewerinventory.h"
#include "llviewerparcelmgr.h"
#include "llviewerregion.h" #include "llviewerregion.h"
#include "llviewertexteditor.h"
LLPanelPlaceInfo::LLPanelPlaceInfo() LLPanelPlaceInfo::LLPanelPlaceInfo()
: LLPanel(), : LLPanel(),

View File

@ -771,23 +771,23 @@ void LLPanelPlaces::onOverflowMenuItemClicked(const LLSD& param)
mPickPanel->reshape(rect.getWidth(), rect.getHeight()); mPickPanel->reshape(rect.getWidth(), rect.getHeight());
mPickPanel->setRect(rect); mPickPanel->setRect(rect);
} }
else if (item == "add_to_favbar") else if (item == "add_to_favbar")
{ {
if ( mItem.notNull() ) if ( mItem.notNull() )
{ {
const LLUUID& favorites_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_FAVORITE); const LLUUID& favorites_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_FAVORITE);
if ( favorites_id.notNull() ) if ( favorites_id.notNull() )
{ {
copy_inventory_item(gAgent.getID(), copy_inventory_item(gAgent.getID(),
mItem->getPermissions().getOwner(), mItem->getPermissions().getOwner(),
mItem->getUUID(), mItem->getUUID(),
favorites_id, favorites_id,
std::string(), std::string(),
LLPointer<LLInventoryCallback>(NULL)); LLPointer<LLInventoryCallback>(NULL));
llinfos << "Copied inventory item #" << mItem->getUUID() << " to favorites." << llendl; llinfos << "Copied inventory item #" << mItem->getUUID() << " to favorites." << llendl;
} }
} }
} }
} }
void LLPanelPlaces::onBackButtonClicked() void LLPanelPlaces::onBackButtonClicked()