summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-09-07 14:50:06 +0200
committerhjk <hjk@qt.io>2018-09-10 09:42:39 +0000
commite7f649a1948220ff1dfa79f58eaa93442c3efe23 (patch)
tree0e65392be14d61bb07a7b9e439a7a1a0fd8401bb
parente79bbc8bde39195fdfdff726658c5a98467fa8d2 (diff)
downloadqt-creator-e7f649a1948220ff1dfa79f58eaa93442c3efe23.tar.gz
CppToolsPlugin: Simplify setup code
Change-Id: I4d738638aa363f66b3bbfd44f866eb8fa48fa226 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 152ecba8aa..02e695e534 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -109,8 +109,7 @@ CppToolsPlugin::CppToolsPlugin()
: m_fileSettings(new CppFileSettings)
{
m_instance = this;
- auto bridgeImplementation = std::unique_ptr<CppToolsBridgeQtCreatorImplementation>(new CppToolsBridgeQtCreatorImplementation);
- CppToolsBridge::setCppToolsBridgeImplementation(std::move(bridgeImplementation));
+ CppToolsBridge::setCppToolsBridgeImplementation(std::make_unique<CppToolsBridgeQtCreatorImplementation>());
}
CppToolsPlugin::~CppToolsPlugin()