diff --git a/src/core/receiptnum.h b/src/core/receiptnum.h index e0c2954ce..f6bce040c 100644 --- a/src/core/receiptnum.h +++ b/src/core/receiptnum.h @@ -26,6 +26,6 @@ #include using ReceiptNum = NamedType; -Q_DECLARE_METATYPE(ReceiptNum); +Q_DECLARE_METATYPE(ReceiptNum) #endif /* RECEIPT_NUM_H */ diff --git a/src/model/ichatlog.h b/src/model/ichatlog.h index fae917426..f4181a51f 100644 --- a/src/model/ichatlog.h +++ b/src/model/ichatlog.h @@ -37,7 +37,7 @@ using ChatLogIdx = NamedType; -Q_DECLARE_METATYPE(ChatLogIdx); +Q_DECLARE_METATYPE(ChatLogIdx) struct SearchPos { diff --git a/src/model/imessagedispatcher.h b/src/model/imessagedispatcher.h index dc31818d9..37bb23532 100644 --- a/src/model/imessagedispatcher.h +++ b/src/model/imessagedispatcher.h @@ -29,7 +29,7 @@ #include using DispatchedMessageId = NamedType; -Q_DECLARE_METATYPE(DispatchedMessageId); +Q_DECLARE_METATYPE(DispatchedMessageId) class IMessageDispatcher : public QObject { diff --git a/src/persistence/db/rawdatabase.h b/src/persistence/db/rawdatabase.h index ad2a8a0c6..1f0e40806 100644 --- a/src/persistence/db/rawdatabase.h +++ b/src/persistence/db/rawdatabase.h @@ -45,7 +45,7 @@ #pragma GCC diagnostic pop using RowId = NamedType; -Q_DECLARE_METATYPE(RowId); +Q_DECLARE_METATYPE(RowId) class RawDatabase : QObject { diff --git a/src/persistence/history.h b/src/persistence/history.h index b2b04cfc4..fcdf3a8ac 100644 --- a/src/persistence/history.h +++ b/src/persistence/history.h @@ -103,7 +103,7 @@ struct FileDbInsertionData int64_t size; int direction; }; -Q_DECLARE_METATYPE(FileDbInsertionData); +Q_DECLARE_METATYPE(FileDbInsertionData) enum class MessageState { diff --git a/src/util/strongtype.h b/src/util/strongtype.h index 7cb282e38..d4c8d8e60 100644 --- a/src/util/strongtype.h +++ b/src/util/strongtype.h @@ -106,7 +106,7 @@ struct Orderable : EqualityComparible * in signals/slots. For queued connections, registering the metatype is also * required before the type is used. * using ReceiptNum = NamedType; - * Q_DECLARE_METATYPE(ReceiptNum); + * Q_DECLARE_METATYPE(ReceiptNum) * qRegisterMetaType(); */