summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-27 11:57:46 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-27 20:11:17 +0100
commit8f4ab09a8ea80a90ae2702eee6ee792f3b232ca4 (patch)
tree1e7b1a316e13a0834c83a74484e22c223e8d11f5 /rbutil/rbutilqt/base/utils.cpp
parentabd87ccf156b803ea1b9941865ca60600b742724 (diff)
downloadrockbox-8f4ab09a8ea80a90ae2702eee6ee792f3b232ca4.tar.gz
rockbox-8f4ab09a8ea80a90ae2702eee6ee792f3b232ca4.tar.bz2
rockbox-8f4ab09a8ea80a90ae2702eee6ee792f3b232ca4.zip
Replace toAscii() / fromAscii() with Latin1() functions.
Qt5 deprecates the Ascii conversion functions, and the Latin1 functions pretty much do the same. Change-Id: I5dee6a443fcfee6afd3256ee536698bcf65ff896
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index 6261c36424..3a19397efb 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -467,7 +467,7 @@ QString Utils::resolveDevicename(QString path)
UCHAR buffer[0x400];
PVOLUME_DISK_EXTENTS extents = (PVOLUME_DISK_EXTENTS)buffer;
- _stprintf(uncpath, _TEXT("\\\\.\\%c:"), path.toAscii().at(0));
+ _stprintf(uncpath, _TEXT("\\\\.\\%c:"), path.toLatin1().at(0));
h = CreateFile(uncpath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL);
if(h == INVALID_HANDLE_VALUE) {
@@ -711,7 +711,7 @@ bool Utils::ejectDevice(QString device)
TCHAR volume[8];
/* CreateFile */
- _stprintf(volume, _TEXT("\\\\.\\%c:"), device.toAscii().at(0));
+ _stprintf(volume, _TEXT("\\\\.\\%c:"), device.toLatin1().at(0));
hdl = CreateFile(volume, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, 0, NULL);