From f9b565a46e6e146391b295455cb5d7f6d25c4737 Mon Sep 17 00:00:00 2001 From: Doc West Date: Thu, 5 Jul 2018 17:29:58 +0200 Subject: [PATCH] Removed QDebug include, moved updateUndoRedoAction to an anonymous namespace --- apps/opencs/view/doc/view.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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()