diff options
Diffstat (limited to 'linden/indra/llui/llviewquery.h')
-rw-r--r-- | linden/indra/llui/llviewquery.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/llui/llviewquery.h b/linden/indra/llui/llviewquery.h index 7e947cd..c76ed25 100644 --- a/linden/indra/llui/llviewquery.h +++ b/linden/indra/llui/llviewquery.h | |||
@@ -87,14 +87,14 @@ class LLCtrlFilter : public LLQueryFilter, public LLSingleton<LLCtrlFilter> | |||
87 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const; | 87 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | template <class T> | ||
90 | class LLWidgetTypeFilter : public LLQueryFilter | 91 | class LLWidgetTypeFilter : public LLQueryFilter |
91 | { | 92 | { |
92 | public: | 93 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const |
93 | LLWidgetTypeFilter(EWidgetType type) : mType(type) {}; | 94 | { |
94 | private: | 95 | return filterResult_t(dynamic_cast<const T*>(view) != NULL, TRUE); |
95 | /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const; | 96 | } |
96 | 97 | ||
97 | EWidgetType mType; | ||
98 | }; | 98 | }; |
99 | 99 | ||
100 | // Algorithm for flattening | 100 | // Algorithm for flattening |