From 09f701ed47c7b54dc9c8da444f84f288c0e2fc2a Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Thu, 16 Jun 2011 11:46:57 +0200 Subject: fix pass LLSD& instead LLSD to selectByValue --- linden/indra/llui/llctrlselectioninterface.cpp | 4 ++-- linden/indra/llui/llctrlselectioninterface.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'linden/indra/llui') 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 @@ LLCtrlSelectionInterface::~LLCtrlSelectionInterface() { } -BOOL LLCtrlSelectionInterface::selectByValue(LLSD value) +BOOL LLCtrlSelectionInterface::selectByValue(const LLSD& value) { return setSelectedByValue(value, TRUE); } -BOOL LLCtrlSelectionInterface::deselectByValue(LLSD value) +BOOL LLCtrlSelectionInterface::deselectByValue(const LLSD& value) { return setSelectedByValue(value, FALSE); } 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: virtual BOOL setCurrentByID( const LLUUID& id ) = 0; virtual LLUUID getCurrentID() const = 0; - BOOL selectByValue(const LLSD value); - BOOL deselectByValue(const LLSD value); + BOOL selectByValue(const LLSD& value); + BOOL deselectByValue(const LLSD& value); virtual BOOL setSelectedByValue(const LLSD& value, BOOL selected) = 0; virtual LLSD getSelectedValue() = 0; -- cgit v1.1