summaryrefslogtreecommitdiff
path: root/indra/llui/llview.h
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-08-04 15:44:45 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-08-04 15:44:45 -0700
commit6f256e2d57d6814fdb97809405989c54ab148c6b (patch)
tree0584e6231bf80e9919e7bf30caceece94b25deb4 /indra/llui/llview.h
parenta97bcb7c7fd705818b7f36af2c4a915e85ff5604 (diff)
parenteefe3388da83ce3e368af28ba466c27644f156c8 (diff)
Merge with dessie/viewer-release
Diffstat (limited to 'indra/llui/llview.h')
-rw-r--r--indra/llui/llview.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index aba6c310f1..8e705ed701 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -265,7 +265,7 @@ public:
virtual BOOL postBuild() { return TRUE; }
- child_tab_order_t getCtrlOrder() const { return mCtrlOrder; }
+ const child_tab_order_t& getCtrlOrder() const { return mCtrlOrder; }
ctrl_list_t getCtrlList() const;
ctrl_list_t getCtrlListSorted() const;
@@ -620,12 +620,13 @@ public:
class LLCompareByTabOrder
{
public:
- LLCompareByTabOrder(LLView::child_tab_order_t order) : mTabOrder(order) {}
+ LLCompareByTabOrder(const LLView::child_tab_order_t& order) : mTabOrder(order) {}
virtual ~LLCompareByTabOrder() {}
bool operator() (const LLView* const a, const LLView* const b) const;
private:
virtual bool compareTabOrders(const LLView::tab_order_t & a, const LLView::tab_order_t & b) const { return a < b; }
- LLView::child_tab_order_t mTabOrder;
+ // ok to store a reference, as this should only be allocated on stack during view query operations
+ const LLView::child_tab_order_t& mTabOrder;
};
template <class T> T* LLView::getChild(const std::string& name, BOOL recurse) const