Cleanup: Return non-const view in grid view item getter

Needed in #104831, not a big deal to let this return non-const (and not
worth polluting the PR with such minor changes).
This commit is contained in:
Julian Eisel
2023-06-13 18:11:14 +02:00
parent 3b78bca592
commit ff44e376ce
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class AbstractGridViewItem : public AbstractViewItem {
virtual void build_grid_tile(uiLayout &layout) const = 0;
const AbstractGridView &get_view() const;
AbstractGridView &get_view() const;
protected:
AbstractGridViewItem(StringRef identifier);

View File

@@ -195,7 +195,7 @@ void AbstractGridViewItem::deactivate()
is_active_ = false;
}
const AbstractGridView &AbstractGridViewItem::get_view() const
AbstractGridView &AbstractGridViewItem::get_view() const
{
if (UNLIKELY(!view_)) {
throw std::runtime_error(