aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectexplorer.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-11-13 16:25:18 +0100
committerhjk <hjk@qt.io>2017-11-14 09:58:46 +0000
commite865261c496030f6a6c214b6525831479ac69e8e (patch)
tree5465c53cbdb0a6683d9af3f32500333bf18d093d /src/plugins/projectexplorer/projectexplorer.h
parent7bad32988fe5a44cfa267442fc9edd84dddff85e (diff)
ProjectExplorer: Return a reference from projectExplorerSetting()
It's 40 bytes nowadays, no need to copy for accessing e.g. single bools. Change-Id: I3c729cb5679e725caa4faea97cdcf7ec27262dc0 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.h')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.h b/src/plugins/projectexplorer/projectexplorer.h
index 4424f0bc161..899255c2bb6 100644
--- a/src/plugins/projectexplorer/projectexplorer.h
+++ b/src/plugins/projectexplorer/projectexplorer.h
@@ -127,7 +127,7 @@ public:
ShutdownFlag aboutToShutdown() override;
static void setProjectExplorerSettings(const Internal::ProjectExplorerSettings &pes);
- static Internal::ProjectExplorerSettings projectExplorerSettings();
+ static const Internal::ProjectExplorerSettings &projectExplorerSettings();
static void startRunControl(RunControl *runControl);
static void showRunErrorMessage(const QString &errorMessage);