mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher/layout_field] Remove magic number
This commit is contained in:
committed by
Léa Saviot
parent
7fce83d1dd
commit
d604df85b2
@@ -48,7 +48,7 @@ KDSize LayoutField::ContentView::minimalSizeForOptimalDisplay() const {
|
||||
}
|
||||
|
||||
View * LayoutField::ContentView::subviewAtIndex(int index) {
|
||||
assert(index >= 0 && index < 2);
|
||||
assert(0 <= index && index < numberOfSubviews());
|
||||
View * m_views[] = {&m_expressionView, &m_cursorView};
|
||||
return m_views[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user