[Pkg-running-devel] [openambit] 40/131: Replaced QString.toAscii() with toLatin1() This is to support Qt5 building (like in *buntu 13.10) see http://qt-project.org/forums/viewthread/24435

Christian Perrier bubulle at moszumanska.debian.org
Thu Jul 17 20:19:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

bubulle pushed a commit to branch master
in repository openambit.

commit f234be153c795fb62d95f7c52118fdb496d9fe54
Author: Marco Bernasocchi <marco at opengis.ch>
Date:   Mon Jan 13 10:09:48 2014 +0100

    Replaced QString.toAscii() with toLatin1()
    This is to support Qt5 building (like in *buntu 13.10)
    see http://qt-project.org/forums/viewthread/24435
---
 src/openambit/logstore.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/openambit/logstore.cpp b/src/openambit/logstore.cpp
index 248b777..34ad849 100644
--- a/src/openambit/logstore.cpp
+++ b/src/openambit/logstore.cpp
@@ -270,13 +270,13 @@ void LogStore::XMLReader::readDeviceInfo()
 
     while (xml.readNextStartElement()) {
         if (xml.name() == "Serial") {
-            strcpy(logEntry->deviceInfo->serial, xml.readElementText().toAscii().data());
+            strcpy(logEntry->deviceInfo->serial, xml.readElementText().toLatin1().data());
         }
         else if (xml.name() == "Model") {
-            strcpy(logEntry->deviceInfo->model, xml.readElementText().toAscii().data());
+            strcpy(logEntry->deviceInfo->model, xml.readElementText().toLatin1().data());
         }
         else if (xml.name() == "Name") {
-            strcpy(logEntry->deviceInfo->name, xml.readElementText().toAscii().data());
+            strcpy(logEntry->deviceInfo->name, xml.readElementText().toLatin1().data());
         }
         else if (xml.name() == "FWVersion") {
             if (versionRX.indexIn(xml.readElementText()) >= 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git



More information about the Pkg-running-devel mailing list