aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/macros
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-02-11 21:55:42 +0200
committerhjk <hjk121@nokiamail.com>2014-02-12 09:30:37 +0100
commit7ed1576083ceb7a6587796c63510d0fe027a9aac (patch)
tree3056a9c4bef984e0dd02ef8826b4016df4e986e5 /src/plugins/macros
parent3f44590f4b894fc1fa479d748dd0587aaf6dea50 (diff)
Clean up single namespace forward-declarations
Done using the following ruby script: Dir.glob('**/*.h').each { |file| if File.file?(file) s = File.read(file) t = s.gsub(/^namespace .+ \{\n\s*class .*;\n\s*\}.*$/) { |m| m.gsub(/\n\s*/, ' ').gsub(/\s*\/\/.*$/, '') } if t != s puts file File.open(file, 'w').write(t) end end } Change-Id: Iffcb966e90eb8e1a625eccd5dd0b94f000ae368e Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/macros')
-rw-r--r--src/plugins/macros/findmacrohandler.h4
-rw-r--r--src/plugins/macros/macrooptionswidget.h4
-rw-r--r--src/plugins/macros/savedialog.h4
-rw-r--r--src/plugins/macros/texteditormacrohandler.h8
4 files changed, 5 insertions, 15 deletions
diff --git a/src/plugins/macros/findmacrohandler.h b/src/plugins/macros/findmacrohandler.h
index 33a68e5766..420a92a903 100644
--- a/src/plugins/macros/findmacrohandler.h
+++ b/src/plugins/macros/findmacrohandler.h
@@ -34,9 +34,7 @@
#include <coreplugin/find/textfindconstants.h>
-namespace Core {
-class IEditor;
-}
+namespace Core { class IEditor; }
namespace Macros {
namespace Internal {
diff --git a/src/plugins/macros/macrooptionswidget.h b/src/plugins/macros/macrooptionswidget.h
index ed75a15d16..ee68a832d3 100644
--- a/src/plugins/macros/macrooptionswidget.h
+++ b/src/plugins/macros/macrooptionswidget.h
@@ -45,9 +45,7 @@ namespace Internal {
class MacroSettings;
-namespace Ui {
- class MacroOptionsWidget;
-}
+namespace Ui { class MacroOptionsWidget; }
class MacroOptionsWidget : public QWidget {
Q_OBJECT
diff --git a/src/plugins/macros/savedialog.h b/src/plugins/macros/savedialog.h
index a6e5a7fa57..fbf96861df 100644
--- a/src/plugins/macros/savedialog.h
+++ b/src/plugins/macros/savedialog.h
@@ -35,9 +35,7 @@
namespace Macros {
namespace Internal {
-namespace Ui {
- class SaveDialog;
-}
+namespace Ui { class SaveDialog; }
class SaveDialog : public QDialog
{
diff --git a/src/plugins/macros/texteditormacrohandler.h b/src/plugins/macros/texteditormacrohandler.h
index f747a14dd2..ec37106a56 100644
--- a/src/plugins/macros/texteditormacrohandler.h
+++ b/src/plugins/macros/texteditormacrohandler.h
@@ -32,13 +32,9 @@
#include "imacrohandler.h"
-namespace Core {
-class IEditor;
-}
+namespace Core { class IEditor; }
-namespace TextEditor {
-class ITextEditor;
-}
+namespace TextEditor { class ITextEditor; }
namespace Macros {
namespace Internal {