We optimized llformat, let's not bother caching version string

It would be used less than once per frame, better to save resources.
This commit is contained in:
Lirusaito
2019-03-24 19:43:49 -04:00
parent 1839a37294
commit 7c9eb35568

View File

@@ -1364,8 +1364,7 @@ void LLFloaterIMPanel::onSendMsg()
if (mSessionType == SUPPORT_SESSION && getChildView("Support Check")->getValue())
{
static const auto version = llformat(" (%d) ", LLVersionInfo::getBuild());
utf8_text.insert(action ? 3 : 0, action ? version.substr(0, version.size()-1) : version.substr(1));
utf8_text.insert(action ? 3 : 0, llformat(action ? " (%d)" : "(%d) ", LLVersionInfo::getBuild()));
}
if ( mSessionInitialized )