Clean up some god tools floater code

This commit is contained in:
Lirusaito
2019-02-25 12:50:32 -05:00
parent 46dff21e97
commit 2a7fd8caa5

View File

@@ -556,7 +556,7 @@ void LLPanelRegionTools::onSaveState(void* userdata)
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
gMessageSystem->nextBlockFast(_PREHASH_DataBlock); gMessageSystem->nextBlockFast(_PREHASH_DataBlock);
gMessageSystem->addStringFast(_PREHASH_Filename, NULL); gMessageSystem->addStringFast(_PREHASH_Filename, nullptr);
gAgent.sendReliableMessage(); gAgent.sendReliableMessage();
} }
} }
@@ -1354,7 +1354,7 @@ void LLPanelRequestTools::onClickRequest()
if(dest == SELECTION) if(dest == SELECTION)
{ {
std::string req =getChild<LLUICtrl>("request")->getValue(); std::string req =getChild<LLUICtrl>("request")->getValue();
req = req.substr(0, req.find_first_of(" ")); req = req.substr(0, req.find_first_of(' '));
std::string param = getChild<LLUICtrl>("parameter")->getValue(); std::string param = getChild<LLUICtrl>("parameter")->getValue();
LLSelectMgr::getInstance()->sendGodlikeRequest(req, param); LLSelectMgr::getInstance()->sendGodlikeRequest(req, param);
} }
@@ -1401,11 +1401,11 @@ void LLPanelRequestTools::sendRequest(const LLHost& host)
host, host,
FALSE, FALSE,
terrain_download_done, terrain_download_done,
NULL); nullptr);
} }
else else
{ {
req = req.substr(0, req.find_first_of(" ")); req = req.substr(0, req.find_first_of(' '));
sendRequest(req, getChild<LLUICtrl>("parameter")->getValue().asString(), host); sendRequest(req, getChild<LLUICtrl>("parameter")->getValue().asString(), host);
} }
} }