Avoid implicit type conversion

This commit is contained in:
Martchus 2023-08-02 17:56:01 +02:00
parent 24b397b930
commit ccb516d47b
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ TagValueObject::TagValueObject(const TagParser::TagValue &value, QJSEngine *engi
{
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
const auto type = TagParser::tagDataTypeString(value.type());
m_type = QString::fromUtf8(type.data(), type.size());
m_type = QString::fromUtf8(type.data(), Utility::sizeToInt(type.size()));
#endif
switch (value.type()) {