tlistbox::get_rows_shown(): forward to tgenerator::get_items_shown()

This commit is contained in:
Jyrki Vesterinen 2016-10-01 20:37:18 +03:00
parent de8a4270a4
commit 54b801a433
2 changed files with 2 additions and 6 deletions

View file

@ -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)

View file

@ -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