Inline ExtraDataType hash function
This commit is contained in:
parent
361f6a1184
commit
cb37fc66f4
|
@ -117,7 +117,9 @@ enum class ExtraDataType : quint8
|
||||||
};
|
};
|
||||||
|
|
||||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||||
FRAMELESSHELPER_CORE_API uint qHash(ExtraDataType key, uint seed = 0) noexcept;
|
inline uint qHash(ExtraDataType key, uint seed = 0) noexcept {
|
||||||
|
return ::qHash(static_cast<quint8>(key), seed);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct FRAMELESSHELPER_CORE_API FramelessExtraData
|
struct FRAMELESSHELPER_CORE_API FramelessExtraData
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "framelesshelpercore_global_p.h"
|
#include "framelesshelpercore_global_p.h"
|
||||||
#include "versionnumber_p.h"
|
#include "versionnumber_p.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include <QtCore/qhashfunctions.h>
|
|
||||||
#include <QtCore/qiodevice.h>
|
#include <QtCore/qiodevice.h>
|
||||||
#include <QtCore/qcoreapplication.h>
|
#include <QtCore/qcoreapplication.h>
|
||||||
#include <QtCore/qloggingcategory.h>
|
#include <QtCore/qloggingcategory.h>
|
||||||
|
@ -124,12 +123,6 @@ FramelessCallbacksPtr FramelessCallbacks::create()
|
||||||
return std::make_shared<FramelessCallbacks>();
|
return std::make_shared<FramelessCallbacks>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
|
||||||
uint qHash(ExtraDataType key, uint seed) noexcept {
|
|
||||||
return ::qHash(static_cast<quint8>(key), seed);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FramelessExtraData::FramelessExtraData() = default;
|
FramelessExtraData::FramelessExtraData() = default;
|
||||||
|
|
||||||
FramelessExtraData::~FramelessExtraData() = default;
|
FramelessExtraData::~FramelessExtraData() = default;
|
||||||
|
|
Loading…
Reference in New Issue