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

List:       kde-commits
Subject:    KDE/kdenetwork/kppp
From:       Laurent Montel <montel () kde ! org>
Date:       2005-09-13 7:26:07
Message-ID: 1126596367.489664.30778.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 460249 by mlaurent:

Use QLatin1String


 M  +2 -2      logview/export.cpp  
 M  +2 -2      ppplog.cpp  


--- trunk/KDE/kdenetwork/kppp/logview/export.cpp #460248:460249
@@ -222,9 +222,9 @@
   QString title = i18n("Connection log for %1").arg(date);
   buffer = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
   buffer.append("<html>\n<head>\n  <title>"+title+"</title>\n");
-  buffer.append(QString::fromLatin1("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+  buffer.append(QLatin1String("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
                 + QTextCodec::codecForLocale()->mimeName() +
-                QString::fromLatin1("\">"));
+                QLatin1String("\">"));
   buffer.append("\n</head>\n<body>\n<h1>"+title+"</h1>\n\n");
   buffer.append("<table width=\"100%\" border=\"1\">\n");
 
--- trunk/KDE/kdenetwork/kppp/ppplog.cpp #460248:460249
@@ -202,8 +202,8 @@
 
   bool foundConnect = false;
   bool foundLCP = gpppdata.getPPPDebug();
-  QString lcp = QString::fromLatin1("[LCP");
-  QString conn = QString::fromLatin1("Connect:");
+  QString lcp = QLatin1String("[LCP");
+  QString conn = QLatin1String("Connect:");
   QStringList::ConstIterator it = sl.begin();
   for( ; it != sl.end(); it++) {
     if((*it).find(lcp) >= 0) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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