Fix build issues.
This commit is contained in:
parent
fbfb63feaa
commit
c132d5676d
|
@ -79,7 +79,7 @@ Q_REQUIRED_RESULT auto ParseCorrectiosn(const QJsonObject &correctionsObject) ->
|
||||||
|
|
||||||
if (!segments.isEmpty())
|
if (!segments.isEmpty())
|
||||||
{
|
{
|
||||||
corrections->insert(glyph.front(), segments);
|
corrections->insert(Front(glyph), segments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -419,4 +419,14 @@ inline auto Back(const QString &str) -> QChar
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
inline auto Front(const QString &str) -> QChar
|
||||||
|
{
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||||
|
return str.front();
|
||||||
|
#else
|
||||||
|
return str.at(0);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#endif // COMPATIBILITY_H
|
#endif // COMPATIBILITY_H
|
||||||
|
|
|
@ -338,7 +338,7 @@ auto VSvgFontEngine::InFont(QChar ch) const -> bool
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VSvgFontEngine::CanRender(const QString &str) const -> bool
|
auto VSvgFontEngine::CanRender(const QString &str) const -> bool
|
||||||
{
|
{
|
||||||
return std::all_of(str.cbegin(), str.cend(), [this](auto c) { return InFont(c); });
|
return std::all_of(str.cbegin(), str.cend(), [this](auto c) { return this->InFont(c); });
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user