Fixed Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2020-07-17 12:25:06 +02:00
parent 7a4e6daecd
commit 2713474f56
2 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ void ProjectFile::readSuppressions(QXmlStreamReader &reader)
} }
void ProjectFile::readTagWarnings(QXmlStreamReader &reader, QString tag) void ProjectFile::readTagWarnings(QXmlStreamReader &reader, const QString &tag)
{ {
QXmlStreamReader::TokenType type; QXmlStreamReader::TokenType type;
do { do {

View File

@ -447,7 +447,7 @@ protected:
* @brief Read tag warnings, what warnings are tagged with a specific tag * @brief Read tag warnings, what warnings are tagged with a specific tag
* @param reader XML stream reader. * @param reader XML stream reader.
*/ */
void readTagWarnings(QXmlStreamReader &reader, QString tag); void readTagWarnings(QXmlStreamReader &reader, const QString &tag);
/** /**
* @brief Read string list * @brief Read string list