summaryrefslogtreecommitdiff
path: root/indra/llui/llviewmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llviewmodel.h')
-rw-r--r--indra/llui/llviewmodel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llviewmodel.h b/indra/llui/llviewmodel.h
index c8a9b52cca..992365d44d 100644
--- a/indra/llui/llviewmodel.h
+++ b/indra/llui/llviewmodel.h
@@ -107,7 +107,8 @@ public:
// New functions
/// Get the stored value in string form
- LLWString getDisplay() const { return mDisplay; }
+ const LLWString& getDisplay() const { return mDisplay; }
+
/**
* Set the display string directly (see LLTextEditor). What the user is
* editing is actually the LLWString value rather than the underlying