diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-03 17:08:10 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-30 20:06:38 +0200 |
commit | 938fbcbb74fd23a6135c3379116b0a23a70a7a33 (patch) | |
tree | 65e5d93f04765193c61067e2dae5ce85dd2e178a /tests | |
parent | 287285aafd0cb34ffc0e4fe150ee59a5e7dabc2d (diff) |
Change uses of {to,from}Ascii to {to,from}Latin1
This operation should be a no-op anyway, since at this point in time,
the fromAscii and toAscii functions simply call their fromLatin1 and
toLatin1 counterparts.
Task-number: QTBUG-21872
Change-Id: Ia2fed44c5db997b6fc13a243f5e312d35f8625ad
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp | 4 | ||||
-rw-r--r-- | tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp index 512f4d7d..57b92272 100644 --- a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp +++ b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp @@ -133,7 +133,7 @@ void tst_QBluetoothSocket::initTestCase() QLatin1String t("TESTSERVER"); if (pe.contains(t)){ qDebug() << pe.value(t); - strcpy(BTADDRESS, pe.value(t).toAscii()); + strcpy(BTADDRESS, pe.value(t).toLatin1()); } if (QBluetoothAddress(BTADDRESS).isNull()){ @@ -180,7 +180,7 @@ void tst_QBluetoothSocket::finished() void tst_QBluetoothSocket::serviceDiscovered(const QBluetoothServiceInfo &info) { qDebug() << "Found: " << info.device().name() << info.serviceUuid(); - strcpy(BTADDRESS, info.device().address().toString().toAscii()); + strcpy(BTADDRESS, info.device().address().toString().toLatin1()); done_discovery = true; } diff --git a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp index 8c2e6346..8e223d9e 100644 --- a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp +++ b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp @@ -154,7 +154,7 @@ void tst_QBluetoothTransferManager::finished() void tst_QBluetoothTransferManager::serviceDiscovered(const QBluetoothServiceInfo &info) { qDebug() << "Found: " << info.device().name() << info.serviceUuid(); - strcpy(BTADDRESS, info.device().address().toString().toAscii()); + strcpy(BTADDRESS, info.device().address().toString().toLatin1()); done_discovery = true; } |