From 23999fece51eaaec6792a1e98867b7e557f6f279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 May 2020 23:14:40 +0200 Subject: [PATCH] Try to make Travis happy --- gui/projectfile.cpp | 2 +- gui/projectfile.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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.