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

List:       kde-commits
Subject:    KDE/kdenetwork/kppp
From:       Thomas Häber <thomas () haeber ! de>
Date:       2006-09-29 5:38:34
Message-ID: 1159508314.281522.13254.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 589995 by haeber:

adding a single character as char/QChar to a string/QString is always faster than a \
single character as string/QString (EBN)

 M  +1 -1      accounting.cpp  
 M  +2 -2      logview/export.cpp  


--- trunk/KDE/kdenetwork/kppp/accounting.cpp #589994:589995
@@ -81,7 +81,7 @@
     .arg(dt.year(), 4);
 
   LogFileName = KGlobal::dirs()->saveLocation("appdata", "Log")
-    + "/" + LogFileName;
+    + '/' + LogFileName;
 
   kDebug(5002) << "LogFileName: " << LogFileName << endl;
 }
--- trunk/KDE/kdenetwork/kppp/logview/export.cpp #589994:589995
@@ -121,7 +121,7 @@
 }
 
 void ExportWizard::typeHighlighted(int index) {
-  typeInfo->setText("<qt><b>"+i18n(ExportFormats[index].name.toUtf8())+" " +
+  typeInfo->setText("<qt><b>"+i18n(ExportFormats[index].name.toUtf8())+' ' +
                     i18n("File Format") + "</b><p></p>" + \
i18n(ExportFormats[index].desc.toUtf8())  +"</qt>");
   setNextEnabled(formatPage, true );
@@ -136,7 +136,7 @@
                    i18n(ExportFormats[i].name.toUtf8()) + " (*." + \
ExportFormats[i].ext + " *." +  ExportFormats[i].ext.toUpper() + ')';
 
-  filename = KFileDialog::getSaveFileName(date + "." + ExportFormats[i].ext, filter, \
0, i18n("Please Choose File")); +  filename = KFileDialog::getSaveFileName(date + '.' \
+ ExportFormats[i].ext, filter, 0, i18n("Please Choose File"));  if \
(filename.isEmpty()) // no file selected  return;
   fnLine->setText(filename);


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

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