1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Comply with Wpedantic

* Remove semicolons after calling a macro
* Remove semicolons at the end of class declarations
* Remove semicolons at the end of namespaces
This commit is contained in:
Anthony Bilinski 2022-03-11 03:15:39 -08:00
parent 4b2cf53a55
commit bda1a6a909
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
7 changed files with 7 additions and 7 deletions

View File

@ -28,4 +28,4 @@ using ReceiptNum = NamedType<uint32_t, struct ReceiptNumTag, Orderable>;
Q_DECLARE_METATYPE(ReceiptNum)
using ExtendedReceiptNum = NamedType<uint32_t, struct ExtendedReceiptNumTag, Orderable>;
Q_DECLARE_METATYPE(ExtendedReceiptNum);
Q_DECLARE_METATYPE(ExtendedReceiptNum)

View File

@ -103,4 +103,4 @@ namespace ExifTransform
image = image.transformed(exifTransform);
return image;
}
};
} // namespace ExifTransform

View File

@ -42,4 +42,4 @@ namespace ExifTransform
Orientation getOrientation(QByteArray imageData);
QImage applyTransformation(QImage image, Orientation orientation);
};
}

View File

@ -24,4 +24,4 @@ class Settings;
namespace GlobalSettingsUpgrader
{
bool doUpgrade(Settings& settings, int fromVer, int toVer);
};
}

View File

@ -24,4 +24,4 @@ class SettingsSerializer;
namespace PersonalSettingsUpgrader
{
bool doUpgrade(SettingsSerializer& settingsSerializer, int fromVer, int toVer);
};
}

View File

@ -349,5 +349,5 @@ void TestChatLineStorage::testConsecutiveDateLineRemoval()
QCOMPARE(idxFromChatLine(storage[newItemIdxStart + 1]).get(), todayPlus2Idx.get());
}
QTEST_GUILESS_MAIN(TestChatLineStorage);
QTEST_GUILESS_MAIN(TestChatLineStorage)
#include "chatlinestorage_test.moc"

View File

@ -536,5 +536,5 @@ std::unique_ptr<FriendListManager> TestFriendListManager::createManagerWithItems
return manager;
}
QTEST_GUILESS_MAIN(TestFriendListManager);
QTEST_GUILESS_MAIN(TestFriendListManager)
#include "friendlistmanager_test.moc"