forked from qt-creator/qt-creator
Core: Make member functions const/static
readability-make-member-function-const finds lots of member functions that could be made const. This change just picks getter functions that really should be const. readability-convert-member-functions-to-static finds non-static member functions which do not access this. This change turns most of them into static ones, but leaves some non static to keep the class API consistent. Change-Id: I004d6f7fab4375f9902f940f29b4a4f561fc7604 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -227,7 +227,7 @@ QList<IWizardFactory*> IWizardFactory::allWizardFactories()
|
||||
return s_allFactories;
|
||||
}
|
||||
|
||||
QString IWizardFactory::runPath(const QString &defaultPath)
|
||||
QString IWizardFactory::runPath(const QString &defaultPath) const
|
||||
{
|
||||
QString path = defaultPath;
|
||||
if (path.isEmpty()) {
|
||||
@@ -381,7 +381,7 @@ void IWizardFactory::clearWizardFactories()
|
||||
s_areFactoriesLoaded = false;
|
||||
}
|
||||
|
||||
QSet<Id> IWizardFactory::pluginFeatures() const
|
||||
QSet<Id> IWizardFactory::pluginFeatures()
|
||||
{
|
||||
static QSet<Id> plugins;
|
||||
if (plugins.isEmpty()) {
|
||||
@@ -394,7 +394,7 @@ QSet<Id> IWizardFactory::pluginFeatures() const
|
||||
return plugins;
|
||||
}
|
||||
|
||||
QSet<Id> IWizardFactory::availableFeatures(Id platformId) const
|
||||
QSet<Id> IWizardFactory::availableFeatures(Id platformId)
|
||||
{
|
||||
QSet<Id> availableFeatures;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user