diff --git a/apps/opencs/view/doc/view.cpp b/apps/opencs/view/doc/view.cpp index f4d9b8ede..9e87e9a3a 100644 --- a/apps/opencs/view/doc/view.cpp +++ b/apps/opencs/view/doc/view.cpp @@ -4,7 +4,6 @@ #include #include -#include #include #include #include @@ -102,11 +101,16 @@ void CSVDoc::View::setupFileMenu() file->addAction(exit); } -static void updateUndoRedoAction(QAction *action, const std::string &settingsKey) +namespace { - QKeySequence seq; - CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq); - action->setShortcut(seq); + + void updateUndoRedoAction(QAction *action, const std::string &settingsKey) + { + QKeySequence seq; + CSMPrefs::State::get().getShortcutManager().getSequence(settingsKey, seq); + action->setShortcut(seq); + } + } void CSVDoc::View::undoActionChanged()