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:
parent
5ae738f818
commit
ad042b09e0
@ -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 */
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user