summaryrefslogtreecommitdiff
path: root/src/libs/utils/portlist.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-09-21 13:54:38 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2012-09-21 21:03:48 +0200
commit3d9e49286091db22fe8b4cf3183cbcd69b4c3d84 (patch)
treeb58f1a95b0094946355a3edbcda160115c02cd99 /src/libs/utils/portlist.cpp
parent903281b3520693e1e116523c6690d07f420feca5 (diff)
downloadqt-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/libs/utils/portlist.cpp')
-rw-r--r--src/libs/utils/portlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/portlist.cpp b/src/libs/utils/portlist.cpp
index 39a258149d..78e2c6940c 100644
--- a/src/libs/utils/portlist.cpp
+++ b/src/libs/utils/portlist.cpp
@@ -117,7 +117,7 @@ private:
}
bool atEnd() const { return m_pos == m_portsSpec.length(); }
- char nextChar() const { return m_portsSpec.at(m_pos).toAscii(); }
+ char nextChar() const { return m_portsSpec.at(m_pos).toLatin1(); }
PortList m_portList;
int m_pos;