From 3fa4fdb8390509447b8b8c285094e876d269648d Mon Sep 17 00:00:00 2001 From: Aesylwinn Date: Fri, 15 Jul 2016 23:26:47 -0400 Subject: [PATCH] Remove use of c++11 feature and add some missing headers. --- apps/opencs/model/prefs/shortcutmanager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/opencs/model/prefs/shortcutmanager.cpp b/apps/opencs/model/prefs/shortcutmanager.cpp index 3e81a5e3d..740179b25 100644 --- a/apps/opencs/model/prefs/shortcutmanager.cpp +++ b/apps/opencs/model/prefs/shortcutmanager.cpp @@ -4,6 +4,8 @@ #include #include +#include +#include #include "shortcut.hpp" @@ -27,7 +29,7 @@ namespace CSMPrefs { if (it->second == shortcut) { - it = mShortcuts.erase(it); + mShortcuts.erase(it++); } else { @@ -45,7 +47,7 @@ namespace CSMPrefs { if (it->second == wrapper) { - it = mShortcutWrappers.erase(it); + mShortcutWrappers.erase(it++); } else {