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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/io
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2010-09-12 14:51:53
Message-ID: 20100912145153.8A82DAC887 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1174480 by aacid:

Add a missing QLatin1Char and convert a QLatin1String to QLatin1Char, 0.77% faster :D


 M  +2 -2      kurl.cpp  


--- trunk/KDE/kdelibs/kdecore/io/kurl.cpp #1174479:1174480
@@ -1072,7 +1072,7 @@
     if(!authority().isEmpty() || result == QLatin1String("file"))
         result += QLatin1String("://");
     else
-        result += QLatin1String(":");
+        result += QLatin1Char(':');
   }
 
   QString tmp = userName();
@@ -1083,7 +1083,7 @@
 
   // Check if host is an ipv6 address
   tmp = host();
-  if (tmp.contains(':'))
+  if (tmp.contains(QLatin1Char(':')))
     result += QLatin1Char('[') + tmp + QLatin1Char(']');
   else
     result += tmp;
[prev in list] [next in list] [prev in thread] [next in thread] 

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