From dd63291355a09411a2242d7ef84d49eece8cb6e1 Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Thu, 9 Mar 2017 17:56:30 -0500 Subject: construct tag string without using += --- indra/llcommon/llerror.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra') 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() -- cgit v1.2.3