diff options
author | Armin Weatherwax | 2011-06-16 11:46:57 +0200 |
---|---|---|
committer | Armin Weatherwax | 2011-11-13 14:28:27 +0100 |
commit | 09f701ed47c7b54dc9c8da444f84f288c0e2fc2a (patch) | |
tree | 0e5c2474d9f1fbcdcf42155e2af10df3330099a9 /linden/indra/llui | |
parent | fix Bug #967 memleak in llfloaterregioninfo (diff) | |
download | meta-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.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llui/llctrlselectioninterface.h | 4 |
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 @@ | |||
39 | LLCtrlSelectionInterface::~LLCtrlSelectionInterface() | 39 | LLCtrlSelectionInterface::~LLCtrlSelectionInterface() |
40 | { } | 40 | { } |
41 | 41 | ||
42 | BOOL LLCtrlSelectionInterface::selectByValue(LLSD value) | 42 | BOOL LLCtrlSelectionInterface::selectByValue(const LLSD& value) |
43 | { | 43 | { |
44 | return setSelectedByValue(value, TRUE); | 44 | return setSelectedByValue(value, TRUE); |
45 | } | 45 | } |
46 | 46 | ||
47 | BOOL LLCtrlSelectionInterface::deselectByValue(LLSD value) | 47 | BOOL 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 | ||