inline HexString<T> QChar operator

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-04-01 23:55:44 +00:00
parent ebc063e427
commit 7377bfa065

View file

@ -79,7 +79,7 @@ template <typename T>
: val(t)
{}
operator const QChar() const {
inline operator const QChar() const {
const char *c = reinterpret_cast<const char *>(&val);
return QChar(qChecksum(c ,sizeof(T)));
}