Fix build for OS X 10.10-10.11.

This commit is contained in:
John Preston 2020-07-02 23:02:59 +04:00
parent f887bf3b6a
commit 3822845f86
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ void Changelogs::addBetaLog(int changeVersion, const char *changes) {
static const auto separator = QString::fromUtf8("\n\xE2\x80\xA2 ");
auto result = QString::fromUtf8(changes).trimmed();
if (result.startsWith(simple.midRef(1))) {
result = separator.midRef(1) + result.midRef(simple.size() - 1);
result = separator.mid(1) + result.mid(simple.size() - 1);
}
return result.replace(simple, separator);
}();