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

List:       kde-commits
Subject:    KDE/kdepimlibs/syndication
From:       Allen Winter <winter () kde ! org>
Date:       2009-04-13 21:12:22
Message-ID: 1239657142.203550.6726.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 953401 by winterz:

QLatin1String-ify


 M  +4 -2      loader.cpp  


--- trunk/KDE/kdepimlibs/syndication/loader.cpp #953400:953401
@@ -181,7 +181,9 @@
         while ( pos >= 0 ) {
             pos = rx.indexIn( str, pos );
             s2=rx.cap(1);
-            if (s2.endsWith(".rdf") || s2.endsWith(".rss") || s2.endsWith(".xml"))
+            if (s2.endsWith(QLatin1String(".rdf")) ||
+                s2.endsWith(QLatin1String(".rss")) || 
+                s2.endsWith(QLatin1String(".xml")))
                     feeds.append(s2);
             if ( pos >= 0 ) {
                 pos += rx.matchedLength();
@@ -208,7 +210,7 @@
 
     if (KUrl::isRelativeUrl(s2))
     {
-        if (s2.startsWith("//"))
+        if (s2.startsWith(QLatin1String("//")))
         {
             s2=s2.prepend(d->url.protocol()+':');
             d->discoveredFeedURL=s2;
[prev in list] [next in list] [prev in thread] [next in thread] 

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