diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2022-11-01 23:11:57 +0200 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2022-11-01 23:11:57 +0200 | 
| commit | 39e08b34b10fa16f22a97caa426e034d7b2afc9d (patch) | |
| tree | a10181b44eb6a2062aa33ddea5064b43f491c860 | |
| parent | d4d5d4018d89ebb13e1c47c9bb500af17a64d1be (diff) | |
| parent | d0e07c770b978d57210a5403bc42cc48e700ef63 (diff) | |
Merge remote-tracking branch 'RyeMutt/viewer/llsd-usage-fixes' into DRTVWR-570-maint-Q
| -rwxr-xr-x | doc/contributions.txt | 1 | ||||
| -rw-r--r-- | indra/llcommon/llerror.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/llmultislider.cpp | 2 | ||||
| -rw-r--r-- | indra/llwindow/lldxhardware.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llenvironment.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llimprocessing.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llpanelexperiencelog.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llpanelobject.cpp | 2 | 
9 files changed, 9 insertions, 8 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt index 4b3672ed48..2686be3e3d 100755 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -1392,6 +1392,7 @@ Sovereign Engineer      SL-18394      SL-18412      SL-18497 +    SL-18525  SpacedOut Frye  	VWR-34  	VWR-45 diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index 919d2dabc4..56fb7c21ca 100644 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -943,7 +943,7 @@ namespace LLError              for (a = sets.beginArray(), end = sets.endArray(); a != end; ++a)              {                  const LLSD& entry = *a; -                if (entry.isMap() && !entry.emptyMap()) +                if (entry.isMap() && entry.size() != 0)                  {                      ELevel level = decodeLevel(entry["level"]); diff --git a/indra/llui/llmultislider.cpp b/indra/llui/llmultislider.cpp index f89064d59a..604d246f12 100644 --- a/indra/llui/llmultislider.cpp +++ b/indra/llui/llmultislider.cpp @@ -92,7 +92,7 @@ LLMultiSlider::LLMultiSlider(const LLMultiSlider::Params& p)  	mMouseDownSignal(NULL),  	mMouseUpSignal(NULL)  { -	mValue.emptyMap(); +	mValue = LLSD::emptyMap();  	mCurSlider = LLStringUtil::null;  	if (mOrientation == HORIZONTAL) diff --git a/indra/llwindow/lldxhardware.cpp b/indra/llwindow/lldxhardware.cpp index 81e938edbe..391a377280 100644 --- a/indra/llwindow/lldxhardware.cpp +++ b/indra/llwindow/lldxhardware.cpp @@ -1098,7 +1098,7 @@ LLSD LLDXHardware::getDisplayInfo()      }  LCleanup: -    if (ret.emptyMap()) +    if (!ret.isMap() || (ret.size() == 0))      {          LL_INFOS() << "Failed to get data, cleaning up" << LL_ENDL;      } diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index 9a23702c38..a02f5e2c4d 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -3085,7 +3085,7 @@ bool LLEnvironment::loadFromSettings()          LL_INFOS("ENVIRONMENT") << "Unable to open previous session environment file " << user_filepath << LL_ENDL;      } -    if (!env_data.isMap() || env_data.emptyMap()) +    if (!env_data.isMap() || (env_data.size() == 0))      {          LL_DEBUGS("ENVIRONMENT") << "Empty map loaded from: " << user_filepath << LL_ENDL;          return false; diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 66a245b779..6f8f73bca0 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -1740,7 +1740,7 @@ void LLFloaterModelPreview::toggleCalculateButton(bool visible)  		childSetTextArg("download_weight", "[ST]", tbd);  		childSetTextArg("server_weight", "[SIM]", tbd);  		childSetTextArg("physics_weight", "[PH]", tbd); -		if (!mModelPhysicsFee.isMap() || mModelPhysicsFee.emptyMap()) +		if (!mModelPhysicsFee.isMap() || (mModelPhysicsFee.size() == 0))  		{  			childSetTextArg("upload_fee", "[FEE]", tbd);  		} diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp index 0524313a5c..57c0c7388e 100644 --- a/indra/newview/llimprocessing.cpp +++ b/indra/newview/llimprocessing.cpp @@ -1561,7 +1561,7 @@ void LLIMProcessing::requestOfflineMessagesCoro(std::string url)          return;      } -    if (messages.emptyArray()) +    if (messages.size() == 0)      {          // Nothing to process          return; diff --git a/indra/newview/llpanelexperiencelog.cpp b/indra/newview/llpanelexperiencelog.cpp index 44b4728df7..e5c637938f 100644 --- a/indra/newview/llpanelexperiencelog.cpp +++ b/indra/newview/llpanelexperiencelog.cpp @@ -112,7 +112,7 @@ void LLPanelExperienceLog::refresh()  	int items = 0;  	bool moreItems = false;  	LLSD events_to_save = events; -	if (!events.emptyMap()) +	if (events.isMap() && events.size() != 0)  	{  		LLSD::map_const_iterator day = events.endMap();  		do diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index 0bfc1297d3..c04b402610 100644 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -2119,7 +2119,7 @@ bool LLPanelObject::menuEnableItem(const LLSD& userdata)      }      else if (command == "params_paste")      { -        return mClipboardParams.isMap() && !mClipboardParams.emptyMap(); +        return mClipboardParams.isMap() && (mClipboardParams.size() != 0);      }      // copy options      else if (command == "psr_copy")  | 
