diff options
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index 643a594f..4d2cec8a 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -29,8 +29,7 @@ ItemShortcut *itemShortcut; -ItemShortcut::ItemShortcut(): - mItemSelected(-1) +ItemShortcut::ItemShortcut() { load(); } @@ -42,8 +41,8 @@ ItemShortcut::~ItemShortcut() void ItemShortcut::load() { - for (int i = 0; i < SHORTCUT_ITEMS; i++) - mItems[i] = -1; + for (int &item : mItems) + item = -1; for (auto &shortcut : config.itemShortcuts) { |