forked from qt-creator/qt-creator
Do not use the fromAscii() and toAscii() functions.
They are deprecated in Qt 5. Use fromLatin1() and toLatin1() instead. In Qt 5, these always do the same thing as their "Ascii" counterparts. The same goes for Qt 4, provided QTextCodec::setCodecForCStrings has not been set, which it hasn't. Change-Id: I04edeb376762b6671eff8156094f0d5e2cb8e1ea Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -279,7 +279,7 @@ QStringList QtcProcess::splitArgs(const QString &_args, bool abortOnMeta, SplitE
|
||||
|
||||
inline static bool isQuoteMeta(QChar cUnicode)
|
||||
{
|
||||
char c = cUnicode.toAscii();
|
||||
char c = cUnicode.toLatin1();
|
||||
return c == '\\' || c == '\'' || c == '"' || c == '$';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user