[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdelibs/khtml/xml
From:       Harald Fernengel <harry () kdevelop ! org>
Date:       2005-07-02 13:48:48
Message-ID: 1120312128.530204.1021.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 430865 by harald:

char -> QLatin1Char


 M  +3 -3      dom_stringimpl.cpp  


--- branches/work/kde4/kdelibs/khtml/xml/dom_stringimpl.cpp #430864:430865
@@ -294,7 +294,7 @@
     int pos = 0;
     int pos2;
 
-    while((pos2 = str.find(' ', pos)) != -1) {
+    while((pos2 = str.find(QLatin1Char(' '), pos)) != -1) {
         r[i++] = parseLength((QChar *) str.unicode()+pos, pos2-pos);
         pos = pos2+1;
     }
@@ -308,14 +308,14 @@
     QString str(s, l);
     str = str.simplifyWhiteSpace();
 
-    len = str.count(',') + 1;
+    len = str.count(QLatin1Char(',')) + 1;
     khtml::Length* r = new khtml::Length[len];
 
     int i = 0;
     int pos = 0;
     int pos2;
 
-    while((pos2 = str.find(',', pos)) != -1) {
+    while((pos2 = str.find(QLatin1Char(','), pos)) != -1) {
         r[i++] = parseLength((QChar *) str.unicode()+pos, pos2-pos);
         pos = pos2+1;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic