summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-06-05 14:33:46 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-06-05 15:41:31 +0200
commit3bf7650d1ff0e4d691a38c971b1dbdc4ce1e4175 (patch)
tree84c53baf4c6958806e64fea6b834ac132a829b7d /src/plugins/projectexplorer
parentffb883957e819021356d7cb7b11e1e69db61a5d1 (diff)
downloadqt-creator-3bf7650d1ff0e4d691a38c971b1dbdc4ce1e4175.tar.gz
Turn struct ProjectExplorerSettings into a class
We agreed to not use structs to avoid the class/struct mismatch warnings in MSVC and clang. Change-Id: Id1b2d89646d3a982c8d85b84b44a4e697102c220 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.h4
-rw-r--r--src/plugins/projectexplorer/projectexplorersettings.h3
-rw-r--r--src/plugins/projectexplorer/projectexplorersettingspage.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.h b/src/plugins/projectexplorer/projectexplorer.h
index f6dd689f49..640346dc7b 100644
--- a/src/plugins/projectexplorer/projectexplorer.h
+++ b/src/plugins/projectexplorer/projectexplorer.h
@@ -60,9 +60,7 @@ class BuildConfiguration;
class ProjectNode;
class TaskHub;
-namespace Internal {
-struct ProjectExplorerSettings;
-}
+namespace Internal { class ProjectExplorerSettings; }
struct ProjectExplorerPluginPrivate;
diff --git a/src/plugins/projectexplorer/projectexplorersettings.h b/src/plugins/projectexplorer/projectexplorersettings.h
index 507bf4612a..90657d7d1a 100644
--- a/src/plugins/projectexplorer/projectexplorersettings.h
+++ b/src/plugins/projectexplorer/projectexplorersettings.h
@@ -35,8 +35,9 @@
namespace ProjectExplorer {
namespace Internal {
-struct ProjectExplorerSettings
+class ProjectExplorerSettings
{
+public:
ProjectExplorerSettings() :
buildBeforeDeploy(true), deployBeforeRun(true),
saveBeforeBuild(false), showCompilerOutput(false),
diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.h b/src/plugins/projectexplorer/projectexplorersettingspage.h
index 75f63dcfb0..38b99181f4 100644
--- a/src/plugins/projectexplorer/projectexplorersettingspage.h
+++ b/src/plugins/projectexplorer/projectexplorersettingspage.h
@@ -39,7 +39,7 @@
namespace ProjectExplorer {
namespace Internal {
-struct ProjectExplorerSettings;
+class ProjectExplorerSettings;
// Documentation inside.
class ProjectExplorerSettingsWidget : public QWidget {