tlistbox::get_rows_shown(): forward to tgenerator::get_items_shown()
This commit is contained in:
parent
de8a4270a4
commit
54b801a433
2 changed files with 2 additions and 6 deletions
|
@ -120,7 +120,7 @@ public:
|
|||
virtual bool get_item_shown(const unsigned index) const = 0;
|
||||
|
||||
/** Returns the visibility of all the items as a bit set. */
|
||||
boost::dynamic_bitset<> get_items_shown()
|
||||
boost::dynamic_bitset<> get_items_shown() const
|
||||
{
|
||||
boost::dynamic_bitset<> items_shown(get_item_count());
|
||||
for (unsigned int i = 0u; i < get_item_count(); ++i)
|
||||
|
|
|
@ -222,11 +222,7 @@ void tlistbox::set_row_shown(const boost::dynamic_bitset<>& shown)
|
|||
|
||||
boost::dynamic_bitset<> tlistbox::get_rows_shown() const
|
||||
{
|
||||
boost::dynamic_bitset<> shown;
|
||||
for(size_t i = 0; i < get_item_count(); i++) {
|
||||
shown.push_back(generator_->get_item_shown(i));
|
||||
}
|
||||
return shown;
|
||||
return generator_->get_items_shown();
|
||||
}
|
||||
|
||||
bool tlistbox::any_rows_shown() const
|
||||
|
|
Loading…
Add table
Reference in a new issue