diff options
author | Oz Linden <oz@lindenlab.com> | 2017-03-09 17:56:30 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2017-03-09 17:56:30 -0500 |
commit | dd63291355a09411a2242d7ef84d49eece8cb6e1 (patch) | |
tree | 3bee8b5f8f02bd44ae0ac1b1c8d8b3076f561e40 /indra/llcommon | |
parent | cb9bddf6834a024ea9a3f916853914c0dc298fd2 (diff) |
construct tag string without using +=
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llerror.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index 02d920b581..b66c3c3c20 100644 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -571,9 +571,10 @@ namespace LLError mFunctionString += std::string(mFunction) + ":"; for (size_t i = 0; i < mTagCount; i++) { - mTagString += mTags[i] + ((i == mTagCount - 1) ? "" : ","); + mTagString.append(mTags[i]); + mTagString.append((i == mTagCount - 1) ? "" : ","); } - mTagString += std::string("#"); + mTagString.append("#"); } CallSite::~CallSite() |