From 2530b36d9de94880c0329e683b58af4b0620454f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 4 Dec 2020 18:53:17 +0100 Subject: [PATCH] Fixed Cppcheck warning; different argument names --- gui/projectfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index 39970a693..e3f986f7b 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -815,12 +815,12 @@ void ProjectFile::setVSConfigurations(const QStringList &vsConfigs) mVsConfigurations = vsConfigs; } -void ProjectFile::setWarningTags(std::size_t hash, QString tag) +void ProjectFile::setWarningTags(std::size_t hash, QString tags) { - if (tag.isEmpty()) + if (tags.isEmpty()) mWarningTags.erase(hash); else if (hash > 0) - mWarningTags[hash] = tag; + mWarningTags[hash] = tags; } QString ProjectFile::getWarningTags(std::size_t hash) const