Browse Source

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
reviewable/pr6033/r2
Anthony Bilinski 5 years ago
parent
commit
ad042b09e0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 2
      src/core/receiptnum.h
  2. 2
      src/model/ichatlog.h
  3. 2
      src/model/imessagedispatcher.h
  4. 2
      src/persistence/db/rawdatabase.h
  5. 2
      src/persistence/history.h
  6. 2
      src/util/strongtype.h

2
src/core/receiptnum.h

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

2
src/model/ichatlog.h

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

2
src/model/imessagedispatcher.h

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

2
src/persistence/db/rawdatabase.h

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

2
src/persistence/history.h

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

2
src/util/strongtype.h

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

Loading…
Cancel
Save