Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 294507 Details for
Bug 392909
games-strategy/wesnoth-1.8.6 fails to build with dev-libs/boost-1.47.0-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
upstream patch
boost-1.47.patch (text/plain), 2.12 KB, created by
poncho
on 2011-12-02 11:55:59 UTC
(
hide
)
Description:
upstream patch
Filename:
MIME Type:
Creator:
poncho
Created:
2011-12-02 11:55:59 UTC
Size:
2.12 KB
patch
obsolete
>--- trunk/src/gui/widgets/tree_view_node.cpp 2011/10/25 17:07:13 51637 >+++ trunk/src/gui/widgets/tree_view_node.cpp 2011/10/25 19:31:42 51638 >@@ -233,6 +233,25 @@ > > struct ttree_view_node_implementation > { >+private: >+ >+ template<class W, class It> >+ static W* find_at_aux( >+ It begin >+ , It end >+ , const tpoint& coordinate >+ , const bool must_be_active) >+ { >+ for(It it = begin; it != end; ++it) { >+ if(W* widget = it->find_at(coordinate, must_be_active)) { >+ return widget; >+ } >+ } >+ return NULL; >+ } >+ >+public: >+ > template<class W> > static W* find_at( > typename tconst_duplicator<W, ttree_view_node>::type& >@@ -250,13 +269,9 @@ > } > > typedef typename tconst_duplicator<W, ttree_view_node>::type thack; >- foreach(thack& node, tree_view_node.children_) { >- if(W* widget = node.find_at(coordinate, must_be_active)) { >- return widget; >- } >- } >- >- return NULL; >+ return find_at_aux<W>(tree_view_node.children_.begin(), >+ tree_view_node.children_.end(), >+ coordinate, must_be_active); > } > }; > >@@ -308,7 +323,10 @@ > return size; > } > >- foreach(const ttree_view_node& node, children_) { >+ for(boost::ptr_vector<ttree_view_node>::const_iterator itor = >+ children_.begin (); itor != children_.end (); ++itor) { >+ >+ const ttree_view_node& node = *itor; > > if(node.grid_.get_visible() == twidget::INVISIBLE) { > continue; >@@ -339,7 +357,10 @@ > size.x += (get_indention_level() - 1) * tree_view().indention_step_size_; > } > >- foreach(const ttree_view_node& node, children_) { >+ for(boost::ptr_vector<ttree_view_node>::const_iterator itor = >+ children_.begin (); itor != children_.end (); ++itor) { >+ >+ const ttree_view_node& node = *itor; > > if(node.grid_.get_visible() == twidget::INVISIBLE) { > continue; >@@ -373,7 +394,10 @@ > > DBG_GUI_L << LOG_HEADER << " own grid best size " << best_size << ".\n"; > >- foreach(const ttree_view_node& node, children_) { >+ for(boost::ptr_vector<ttree_view_node>::const_iterator itor = >+ children_.begin (); itor != children_.end (); ++itor) { >+ >+ const ttree_view_node& node = *itor; > > if(node.grid_.get_visible() == twidget::INVISIBLE) { > continue;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 392909
:
294505
| 294507