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

chore(cleanup): don't add semicolon to Q_DECLARE_METATYPE

It is uneeded and prevents enabling of warnings for uneeded semicolons after
classes or namespaces

Fix #6007
This commit is contained in:
Anthony Bilinski 2020-03-23 00:55:48 -07:00
parent 5ae738f818
commit ad042b09e0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
6 changed files with 6 additions and 6 deletions

View File

@ -26,6 +26,6 @@
#include <cstdint>
using ReceiptNum = NamedType<uint32_t, struct ReceiptNumTag, Orderable>;
Q_DECLARE_METATYPE(ReceiptNum);
Q_DECLARE_METATYPE(ReceiptNum)
#endif /* RECEIPT_NUM_H */

View File

@ -37,7 +37,7 @@
using ChatLogIdx =
NamedType<size_t, struct ChatLogIdxTag, Orderable, UnderlyingAddable, UnitlessDifferencable, Incrementable>;
Q_DECLARE_METATYPE(ChatLogIdx);
Q_DECLARE_METATYPE(ChatLogIdx)
struct SearchPos
{

View File

@ -29,7 +29,7 @@
#include <cstdint>
using DispatchedMessageId = NamedType<size_t, struct SentMessageIdTag, Orderable, Incrementable>;
Q_DECLARE_METATYPE(DispatchedMessageId);
Q_DECLARE_METATYPE(DispatchedMessageId)
class IMessageDispatcher : public QObject
{

View File

@ -45,7 +45,7 @@
#pragma GCC diagnostic pop
using RowId = NamedType<int64_t, struct RowIdTag, Orderable>;
Q_DECLARE_METATYPE(RowId);
Q_DECLARE_METATYPE(RowId)
class RawDatabase : QObject
{

View File

@ -103,7 +103,7 @@ struct FileDbInsertionData
int64_t size;
int direction;
};
Q_DECLARE_METATYPE(FileDbInsertionData);
Q_DECLARE_METATYPE(FileDbInsertionData)
enum class MessageState
{

View File

@ -106,7 +106,7 @@ struct Orderable : EqualityComparible<T, Underlying>
* in signals/slots. For queued connections, registering the metatype is also
* required before the type is used.
* using ReceiptNum = NamedType<uint32_t, struct ReceiptNumTag>;
* Q_DECLARE_METATYPE(ReceiptNum);
* Q_DECLARE_METATYPE(ReceiptNum)
* qRegisterMetaType<ReceiptNum>();
*/