LibGUI: Misc tweaks

Minus two empty lines because clang-format insists on it,
and plus an underscore.
This commit is contained in:
Sergey Bugaev 2020-01-22 21:08:29 +03:00 committed by Andreas Kling
parent 91d3fc54be
commit fd11c96e8e
Notes: sideshowbarker 2024-07-19 09:53:07 +09:00
3 changed files with 2 additions and 4 deletions

View File

@ -198,8 +198,8 @@ void GItemView::mousemove_event(GMouseEvent& event)
selection().add(model()->index(item_index, model_column()));
}
if (event.modifiers() & Mod_Ctrl) {
for (auto storeditem : m_rubber_band_remembered_selection) {
selection().add(storeditem);
for (auto stored_item : m_rubber_band_remembered_selection) {
selection().add(stored_item);
}
}
update();

View File

@ -90,7 +90,6 @@ public:
// FIXME: This should take glyph spacing into account, no?
int glyph_width() const { return font().glyph_width('x'); }
void insert_at_cursor_or_replace_selection(const StringView&);
bool write_to_file(const StringView& path);
bool has_selection() const { return m_selection.is_valid(); }

View File

@ -435,7 +435,6 @@ void GTreeView::keydown_event(GKeyEvent& event)
return;
}
}
}
int GTreeView::item_count() const