QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2016-01-05 16:06:48 +01:00
committed by wmayer
parent e55ba2d24d
commit d5c074f80d
61 changed files with 191 additions and 191 deletions
+2 -2
View File
@@ -319,8 +319,8 @@ bool InteractiveInterpreter::push(const char* line)
d->buffer.append(QString::fromAscii(line));
QString source = d->buffer.join(QLatin1String("\n"));
try {
// Source is already UTF-8, so we can use toAscii()
bool more = runSource(source.toAscii());
// Source is already UTF-8, so we can use toLatin1()
bool more = runSource(source.toLatin1());
if (!more)
d->buffer.clear();
return more;