From b08d25ad65a2285054b277b35e6674b95c3f586d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 4 Aug 2015 15:34:31 +0200 Subject: [PATCH] Remove traces of old old llavatarconstants.h --- indra/newview/fspanelprofile.cpp | 38 +++++++++++++----------------- indra/newview/llavatarlistitem.cpp | 1 - 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/indra/newview/fspanelprofile.cpp b/indra/newview/fspanelprofile.cpp index dadae9997d..627e7b95e9 100644 --- a/indra/newview/fspanelprofile.cpp +++ b/indra/newview/fspanelprofile.cpp @@ -29,7 +29,6 @@ #include "fspanelprofile.h" // Common -//#include "llavatarconstants.h" //AVATAR_ONLINE #include "llavatarnamecache.h" #include "llslurl.h" #include "lldateutil.h" //ageFromDate @@ -369,14 +368,14 @@ void FSPanelProfileSecondLife::processProperties(void* data, EAvatarProcessorTyp void FSPanelProfileSecondLife::resetData() { resetLoading(); - // No real need to reset user_key + // No real need to reset user_key getChild("complete_name")->setValue(LLStringUtil::null); getChild("register_date")->setValue(LLStringUtil::null); getChild("acc_status_text")->setValue(LLStringUtil::null); getChild("partner_text")->setValue(LLStringUtil::null); mSecondLifePic->setValue(mSecondLifePic->getDefaultImageAssetID()); mDescriptionEdit->setValue(LLStringUtil::null); - mStatusText->setVisible(false); + mStatusText->setVisible(FALSE); mGroups.clear(); mGroupList->setGroups(mGroups); } @@ -498,7 +497,7 @@ void FSPanelProfileSecondLife::fillAccountStatus(const LLAvatarData* avatar_data S32 flags = FSData::getInstance()->getAgentFlags(avatar_data->avatar_id); if (flags != -1) { - bool seperator = false; + bool separator = false; std::string text; if (flags & (FSData::DEVELOPER | FSData::SUPPORT | FSData::QA)) { @@ -509,24 +508,24 @@ void FSPanelProfileSecondLife::fillAccountStatus(const LLAvatarData* avatar_data { text = getString("FSDev"); args["[FSDEV]"] = text; - seperator = true; + separator = true; } if (flags & FSData::SUPPORT) { text = getString("FSSupp"); - if (seperator) + if (separator) { text = " /" + text; } args["[FSSUPP]"] = text; - seperator = true; + separator = true; } if (flags & FSData::QA) { text = getString("FSQualityAssurance"); - if (seperator) + if (separator) { text = " /" + text; } @@ -1139,16 +1138,16 @@ void FSPanelProfileInterests::apply() { if (mWantChecks[i]->getValue().asBoolean()) { - interests_data.want_to_mask |= (1<getValue().asBoolean()) { - interests_data.skills_mask |= (1<setEnabled(TRUE); mLanguagesEditor->setEnabled(TRUE); - for (S32 i=0; i < WANT_CHECKS; ++i) + for (S32 i = 0; i < WANT_CHECKS; ++i) { - mWantChecks[i]->setEnabled( TRUE ); + mWantChecks[i]->setEnabled(TRUE); } - for (S32 i=0; i < SKILL_CHECKS; ++i) + for (S32 i = 0; i < SKILL_CHECKS; ++i) { - mSkillChecks[i]->setEnabled( TRUE ); + mSkillChecks[i]->setEnabled(TRUE); } } } @@ -1978,8 +1977,7 @@ void FSPanelAvatarNotes::rightsConfirmationCallback(const LLSD& notification, S32 option = LLNotificationsUtil::getSelectedOption(notification, response); if (option == 0) { - LLAvatarPropertiesProcessor::getInstance()->sendFriendRights( - getAvatarId(), rights); + LLAvatarPropertiesProcessor::getInstance()->sendFriendRights(getAvatarId(), rights); } else { @@ -2008,17 +2006,15 @@ void FSPanelAvatarNotes::confirmModifyRights(bool grant, S32 rights) void FSPanelAvatarNotes::onCommitRights() { - const LLRelationship* buddy_relationship = - LLAvatarTracker::instance().getBuddyInfo(getAvatarId()); + const LLRelationship* buddy_relationship = LLAvatarTracker::instance().getBuddyInfo(getAvatarId()); - if (NULL == buddy_relationship) + if (!buddy_relationship) { // Lets have a warning log message instead of having a crash. EXT-4947. LL_WARNS("LegacyProfile") << "Trying to modify rights for non-friend avatar. Skipped." << LL_ENDL; return; } - S32 rights = 0; if (mOnlineStatus->getValue().asBoolean()) diff --git a/indra/newview/llavatarlistitem.cpp b/indra/newview/llavatarlistitem.cpp index f6df9f4e14..fb8dd4b891 100755 --- a/indra/newview/llavatarlistitem.cpp +++ b/indra/newview/llavatarlistitem.cpp @@ -48,7 +48,6 @@ #include #include "llavatarpropertiesprocessor.h" #include "lldateutil.h" -//#include "llavatarconstants.h" #include "indra_constants.h" #include "llnotificationsutil.h" #include "llvoiceclient.h"