diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2012-09-21 13:54:38 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2012-09-21 21:03:48 +0200 |
commit | 3d9e49286091db22fe8b4cf3183cbcd69b4c3d84 (patch) | |
tree | b58f1a95b0094946355a3edbcda160115c02cd99 /src/plugins/debugger/cdb/cdbparsehelpers.cpp | |
parent | 903281b3520693e1e116523c6690d07f420feca5 (diff) | |
download | qt-creator-3d9e49286091db22fe8b4cf3183cbcd69b4c3d84.tar.gz |
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>
Diffstat (limited to 'src/plugins/debugger/cdb/cdbparsehelpers.cpp')
-rw-r--r-- | src/plugins/debugger/cdb/cdbparsehelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbparsehelpers.cpp b/src/plugins/debugger/cdb/cdbparsehelpers.cpp index 5e886553af..95847102be 100644 --- a/src/plugins/debugger/cdb/cdbparsehelpers.cpp +++ b/src/plugins/debugger/cdb/cdbparsehelpers.cpp @@ -556,7 +556,7 @@ bool parseCdbDisassemblerLine(const QString &line, DisassemblerLine *dLine, uint dLine->address = addressS.toULongLong(&ok, 16); if (!ok) return false; - dLine->rawData = QByteArray::fromHex(line.mid(rawDataPos, rawDataEnd - rawDataPos).toAscii()); + dLine->rawData = QByteArray::fromHex(line.mid(rawDataPos, rawDataEnd - rawDataPos).toLatin1()); dLine->data = line.right(line.size() - instructionPos).trimmed(); return true; } |