aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llviewquery.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llui/llviewquery.h
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llviewquery.h10
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
90template <class T>
90class LLWidgetTypeFilter : public LLQueryFilter 91class LLWidgetTypeFilter : public LLQueryFilter
91{ 92{
92public: 93 /*virtual*/ filterResult_t operator() (const LLView* const view, const viewList_t & children) const
93 LLWidgetTypeFilter(EWidgetType type) : mType(type) {}; 94 {
94private: 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