Explorar o código

LibGUI: Misc tweaks

Minus two empty lines because clang-format insists on it,
and plus an underscore.
Sergey Bugaev %!s(int64=5) %!d(string=hai) anos
pai
achega
fd11c96e8e

+ 2 - 2
Libraries/LibGUI/GItemView.cpp

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

+ 0 - 1
Libraries/LibGUI/GTextEditor.h

@@ -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(); }

+ 0 - 1
Libraries/LibGUI/GTreeView.cpp

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