CppToolsPlugin: Simplify setup code

Change-Id: I4d738638aa363f66b3bbfd44f866eb8fa48fa226
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
hjk
2018-09-07 14:50:06 +02:00
parent e79bbc8bde
commit e7f649a194

View File

@@ -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()