summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprojectmanager
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/qmlprojectmanager
parent3f44590f4b894fc1fa479d748dd0587aaf6dea50 (diff)
downloadqt-creator-7ed1576083ceb7a6587796c63510d0fe027a9aac.tar.gz
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/qmlprojectmanager')
-rw-r--r--src/plugins/qmlprojectmanager/fileformat/filefilteritems.h4
-rw-r--r--src/plugins/qmlprojectmanager/qmlapplicationwizard.h4
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectnodes.h4
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h4
4 files changed, 4 insertions, 12 deletions
diff --git a/src/plugins/qmlprojectmanager/fileformat/filefilteritems.h b/src/plugins/qmlprojectmanager/fileformat/filefilteritems.h
index 98941a944b..f6eeb623bf 100644
--- a/src/plugins/qmlprojectmanager/fileformat/filefilteritems.h
+++ b/src/plugins/qmlprojectmanager/fileformat/filefilteritems.h
@@ -38,9 +38,7 @@
QT_FORWARD_DECLARE_CLASS(QDir)
-namespace Utils {
-class FileSystemWatcher;
-}
+namespace Utils { class FileSystemWatcher; }
namespace QmlProjectManager {
diff --git a/src/plugins/qmlprojectmanager/qmlapplicationwizard.h b/src/plugins/qmlprojectmanager/qmlapplicationwizard.h
index f2c8d44067..835c4d4e38 100644
--- a/src/plugins/qmlprojectmanager/qmlapplicationwizard.h
+++ b/src/plugins/qmlprojectmanager/qmlapplicationwizard.h
@@ -33,9 +33,7 @@
#include <coreplugin/basefilewizard.h>
#include <projectexplorer/baseprojectwizarddialog.h>
-namespace ExtensionSystem {
-class IPlugin;
-} // namespace ExtensionSystem
+namespace ExtensionSystem { class IPlugin; }
namespace QmlProjectManager {
namespace Internal {
diff --git a/src/plugins/qmlprojectmanager/qmlprojectnodes.h b/src/plugins/qmlprojectmanager/qmlprojectnodes.h
index d35e8fed8f..6dedae8a96 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectnodes.h
+++ b/src/plugins/qmlprojectmanager/qmlprojectnodes.h
@@ -35,9 +35,7 @@
#include <QStringList>
#include <QHash>
-namespace Core {
-class IDocument;
-}
+namespace Core { class IDocument; }
namespace QmlProjectManager {
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
index 7968e59c49..f2530d3221 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
+++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
@@ -38,9 +38,7 @@
QT_FORWARD_DECLARE_CLASS(QStringListModel)
-namespace Core {
- class IEditor;
-}
+namespace Core { class IEditor; }
namespace QtSupport { class BaseQtVersion; }