diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-25 10:30:57 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-25 10:30:57 -0800 |
commit | 9f44c4df7963b4ae06f4dd86a2078ebe704201f1 (patch) | |
tree | e3bb2cbbe9eb30ed4d92d2046e06b0e52c9d3e68 /indra/llui/lltexteditor.cpp | |
parent | 98ee0691e6a471ea481b2cc5832c2e0ce15fcb1a (diff) |
Fix some Linux build breakage - can't treat the return of a constructor call as a ref with gcc, have to use intermediate variable.
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r-- | indra/llui/lltexteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 93ce7a4bea..3ea33d5f6a 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -2567,7 +2567,8 @@ void LLTextEditor::updateLinkSegments() std::string new_url = wstring_to_utf8str(url_label); LLStringUtil::trim(new_url); new_style->setLinkHREF(new_url); - segment->setStyle(LLStyleConstSP(new_style)); + LLStyleConstSP sp(new_style); + segment->setStyle(sp); } } } |