Infrastructure: remove redundant ';'s from Q_UNUSED(...) macro (#7825)

#### Brief overview of PR changes/additions
In all places in our code where we use `Q_UNUSED(...)` to silence a
warning about an argument to a method/function that isn't used this PR
removes any following `;` as this macro does NOT need it.

#### Motivation for adding to Mudlet
For consistency across the entirety of our code, so that all our usage
of this macro is "correct" and doesn't include something that is
unneeded.

#### Other info (issues closed, discussion etc)
There are places in third-party code that does include it but it isn't
our job to clean those up!

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
This commit is contained in:
Stephen Lyons 2025-04-27 18:48:34 +01:00 committed by GitHub
parent dd802f042e
commit 7eb71281eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 42 additions and 43 deletions

View file

@ -3520,7 +3520,7 @@ void TMap::restore16ColorSet()
void TMap::setUnsaved(const char* fromWhere)
{
#if !defined(DEBUG_MAPAUTOSAVE)
Q_UNUSED(fromWhere);
Q_UNUSED(fromWhere)
#else
QString nowString = QDateTime::currentDateTimeUtc().toString("HH:mm:ss.zzz");
qDebug().nospace().noquote() << "TMap::setUnsaved(...) INFO - called at: " << nowString << " from: " << fromWhere << ".";