forked from qt-creator/qt-creator
Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -133,11 +133,8 @@ CppcheckPlugin::CppcheckPlugin() = default;
|
||||
|
||||
CppcheckPlugin::~CppcheckPlugin() = default;
|
||||
|
||||
bool CppcheckPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
void CppcheckPlugin::initialize()
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorString)
|
||||
|
||||
d.reset(new CppcheckPluginPrivate);
|
||||
|
||||
using namespace Core;
|
||||
@@ -156,8 +153,6 @@ bool CppcheckPlugin::initialize(const QStringList &arguments, QString *errorStri
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::runActionsUpdated,
|
||||
d.get(), &CppcheckPluginPrivate::updateManualRunAction);
|
||||
d->updateManualRunAction();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // Cppcheck::Internal
|
||||
|
||||
Reference in New Issue
Block a user