From 337cd3aa9d8a8beaebd35ec6b53f09709e35a4d4 Mon Sep 17 00:00:00 2001 From: "Jeff (Gioffredo Linden)" Date: Tue, 16 Oct 2012 15:22:42 -0400 Subject: Make getValue const to fix Windows builds - and be more robust --- indra/newview/llchathistory.cpp | 2 +- indra/newview/llchathistory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index deb658c489..821d1f4685 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -596,7 +596,7 @@ LLChatHistory::LLChatHistory(const LLChatHistory::Params& p) mEditor = LLUICtrlFactory::create(editor_params, this); } -LLSD LLChatHistory::getValue() +const LLSD LLChatHistory::getValue() { LLSD* text=new LLSD(); text->assign(mEditor->getText()); diff --git a/indra/newview/llchathistory.h b/indra/newview/llchathistory.h index effdd75911..b65d222b53 100644 --- a/indra/newview/llchathistory.h +++ b/indra/newview/llchathistory.h @@ -103,7 +103,7 @@ class LLChatHistory : public LLUICtrl public: ~LLChatHistory(); - LLSD getValue(); + const LLSD getValue(); void initFromParams(const Params&); /** -- cgit v1.2.3