summaryrefslogtreecommitdiff
path: root/indra/llui/llview.cpp
diff options
context:
space:
mode:
authorYuri Chebotarev <ychebotarev@productengine.com>2009-12-07 12:04:27 +0200
committerYuri Chebotarev <ychebotarev@productengine.com>2009-12-07 12:04:27 +0200
commitc6177836ecbe95f75d79f572303a879bf37b3226 (patch)
tree3ed5664215c29590078c98a6983431c3be9bf1ae /indra/llui/llview.cpp
parent67ff38b51b59766ff7bc0af1e541b54ac067ea70 (diff)
no ticket, minor refactoring.
add return value to notifyXXX functions, may be usefull --HG-- branch : product-engine
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r--indra/llui/llview.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 23e4131e6d..d8ebe15dc0 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -2848,18 +2848,21 @@ LLView::default_widget_map_t& LLView::getDefaultWidgetMap() const
return *mDefaultWidgets;
}
-void LLView::notifyParent(const LLSD& info)
+S32 LLView::notifyParent(const LLSD& info)
{
LLView* parent = getParent();
if(parent)
- parent->notifyParent(info);
+ return parent->notifyParent(info);
+ return 0;
}
-void LLView::notifyChildren(const LLSD& info)
+bool LLView::notifyChildren(const LLSD& info)
{
+ bool ret = false;
for ( child_list_iter_t child_it = mChildList.begin(); child_it != mChildList.end(); ++child_it)
{
- (*child_it)->notifyChildren(info);
+ ret |= (*child_it)->notifyChildren(info);
}
+ return ret;
}
// convenient accessor for draw context