aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
authorArmin Weatherwax2011-06-16 11:46:57 +0200
committerArmin Weatherwax2011-11-13 14:28:27 +0100
commit09f701ed47c7b54dc9c8da444f84f288c0e2fc2a (patch)
tree0e5c2474d9f1fbcdcf42155e2af10df3330099a9 /linden/indra/llui
parentfix Bug #967 memleak in llfloaterregioninfo (diff)
downloadmeta-impy-09f701ed47c7b54dc9c8da444f84f288c0e2fc2a.zip
meta-impy-09f701ed47c7b54dc9c8da444f84f288c0e2fc2a.tar.gz
meta-impy-09f701ed47c7b54dc9c8da444f84f288c0e2fc2a.tar.bz2
meta-impy-09f701ed47c7b54dc9c8da444f84f288c0e2fc2a.tar.xz
fix pass LLSD& instead LLSD to selectByValue
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/llctrlselectioninterface.cpp4
-rw-r--r--linden/indra/llui/llctrlselectioninterface.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llui/llctrlselectioninterface.cpp b/linden/indra/llui/llctrlselectioninterface.cpp
index dac0939..1111b9d 100644
--- a/linden/indra/llui/llctrlselectioninterface.cpp
+++ b/linden/indra/llui/llctrlselectioninterface.cpp
@@ -39,12 +39,12 @@
39LLCtrlSelectionInterface::~LLCtrlSelectionInterface() 39LLCtrlSelectionInterface::~LLCtrlSelectionInterface()
40{ } 40{ }
41 41
42BOOL LLCtrlSelectionInterface::selectByValue(LLSD value) 42BOOL LLCtrlSelectionInterface::selectByValue(const LLSD& value)
43{ 43{
44 return setSelectedByValue(value, TRUE); 44 return setSelectedByValue(value, TRUE);
45} 45}
46 46
47BOOL LLCtrlSelectionInterface::deselectByValue(LLSD value) 47BOOL LLCtrlSelectionInterface::deselectByValue(const LLSD& value)
48{ 48{
49 return setSelectedByValue(value, FALSE); 49 return setSelectedByValue(value, FALSE);
50} 50}
diff --git a/linden/indra/llui/llctrlselectioninterface.h b/linden/indra/llui/llctrlselectioninterface.h
index 45727d6..7b5cd66 100644
--- a/linden/indra/llui/llctrlselectioninterface.h
+++ b/linden/indra/llui/llctrlselectioninterface.h
@@ -67,8 +67,8 @@ public:
67 virtual BOOL setCurrentByID( const LLUUID& id ) = 0; 67 virtual BOOL setCurrentByID( const LLUUID& id ) = 0;
68 virtual LLUUID getCurrentID() const = 0; 68 virtual LLUUID getCurrentID() const = 0;
69 69
70 BOOL selectByValue(const LLSD value); 70 BOOL selectByValue(const LLSD& value);
71 BOOL deselectByValue(const LLSD value); 71 BOOL deselectByValue(const LLSD& value);
72 virtual BOOL setSelectedByValue(const LLSD& value, BOOL selected) = 0; 72 virtual BOOL setSelectedByValue(const LLSD& value, BOOL selected) = 0;
73 virtual LLSD getSelectedValue() = 0; 73 virtual LLSD getSelectedValue() = 0;
74 74