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:
parent
4b2cf53a55
commit
bda1a6a909
@ -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)
|
||||
|
@ -103,4 +103,4 @@ namespace ExifTransform
|
||||
image = image.transformed(exifTransform);
|
||||
return image;
|
||||
}
|
||||
};
|
||||
} // namespace ExifTransform
|
||||
|
@ -42,4 +42,4 @@ namespace ExifTransform
|
||||
|
||||
Orientation getOrientation(QByteArray imageData);
|
||||
QImage applyTransformation(QImage image, Orientation orientation);
|
||||
};
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ class Settings;
|
||||
namespace GlobalSettingsUpgrader
|
||||
{
|
||||
bool doUpgrade(Settings& settings, int fromVer, int toVer);
|
||||
};
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ class SettingsSerializer;
|
||||
namespace PersonalSettingsUpgrader
|
||||
{
|
||||
bool doUpgrade(SettingsSerializer& settingsSerializer, int fromVer, int toVer);
|
||||
};
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -536,5 +536,5 @@ std::unique_ptr<FriendListManager> TestFriendListManager::createManagerWithItems
|
||||
return manager;
|
||||
}
|
||||
|
||||
QTEST_GUILESS_MAIN(TestFriendListManager);
|
||||
QTEST_GUILESS_MAIN(TestFriendListManager)
|
||||
#include "friendlistmanager_test.moc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user