diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index afb9fc006..9fa7bc107 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -996,7 +996,7 @@ void ProjectFile::SafeChecks::saveToXml(QXmlStreamWriter &xmlWriter) const xmlWriter.writeEndElement(); } -QString ProjectFile::getAddonFilePath(QString filesDir, QString addon) +QString ProjectFile::getAddonFilePath(QString filesDir, const QString &addon) { if (!filesDir.endsWith("/")) filesDir += "/"; diff --git a/gui/projectfile.h b/gui/projectfile.h index 89d5bf7ac..4aba8a4e3 100644 --- a/gui/projectfile.h +++ b/gui/projectfile.h @@ -167,7 +167,12 @@ public: return mAddons; } - static QString getAddonFilePath(QString filesDir, QString addon); + /** + * @brief Get path to addon python script + * @param filesDir Data files folder set by --data-dir + * @param addon addon i.e. "misra" to lookup + */ + static QString getAddonFilePath(QString filesDir, const QString &addon); /** * @brief Get list of addons and tools.