summaryrefslogtreecommitdiff
path: root/indra/llui/lluistring.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-10-15 14:11:24 -0700
committerRichard Linden <none@none>2010-10-15 14:11:24 -0700
commit98563df257729ce36dff363134136f0b549f8313 (patch)
treee27cbb6ffc88fc2011bccbb09f3bf4299d1832de /indra/llui/lluistring.cpp
parent6dcf769ca5c8bef9a170451094f022ac3791f1d9 (diff)
switch ui string args to auto_ptr to do automatic cleanup
Diffstat (limited to 'indra/llui/lluistring.cpp')
-rw-r--r--indra/llui/lluistring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lluistring.cpp b/indra/llui/lluistring.cpp
index ac69d3bf85..d805e37c09 100644
--- a/indra/llui/lluistring.cpp
+++ b/indra/llui/lluistring.cpp
@@ -129,7 +129,7 @@ void LLUIString::updateResult() const
mResult = mOrig;
// get the defailt args + local args
- if (!mArgs || mArgs->empty())
+ if (!mArgs.get() || mArgs->empty())
{
LLStringUtil::format(mResult, LLTrans::getDefaultArgs());
}
@@ -150,7 +150,7 @@ void LLUIString::updateWResult() const
LLStringUtil::format_map_t& LLUIString::getArgs()
{
- if (!mArgs)
+ if (!mArgs.get())
{
mArgs = new LLStringUtil::format_map_t;
}