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:
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user