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

List:       kde-commits
Subject:    kdenonbeta/kio_mhtml
From:       Spiros Georgaras <sngeorgaras () otenet ! gr>
Date:       2005-01-10 11:08:04
Message-ID: 20050110110804.01CBD1CE97 () office ! kde ! org
[Download RAW message or body]

CVS commit by sngeorgaras: 

correct speed ups as pointed out by Oswald Buddenhagen


  M +6 -6      kmhtmlarchive.cpp   1.15
  M +6 -6      kmhtmlarchive.h   1.9


--- kdenonbeta/kio_mhtml/kmhtmlarchive.cpp  #1.14:1.15
@@ -57,5 +57,5 @@
 /*================================
 ================================*/
-KmhtmlArchive::KmhtmlArchive(QString mhtArchive){
+KmhtmlArchive::KmhtmlArchive(const QString &mhtArchive){
         item=0;
         status=0;
@@ -567,5 +567,5 @@ QDateTime KmhtmlArchive::datetime() cons
 /*================================
 ================================*/
-void KmhtmlArchive::fixFileName(QByteArray exC,int i){
+void KmhtmlArchive::fixFileName(const QByteArray &exC,int i){
         QString ext=QString::null;
         QString tmp=item[i].name;
@@ -724,5 +724,5 @@ bool KmhtmlArchive::findLineEnd(){
 /*================================
 ================================*/
-QCString KmhtmlArchive::removeControlChars(QCString msg){
+QCString KmhtmlArchive::removeControlChars(const QCString &msg){
         int en;
         int st=0;
@@ -886,5 +886,5 @@ void KmhtmlArchive::evalItemHeader(int i
 /*================================
 ================================*/
-QCString KmhtmlArchive::trim(QCString tmp){
+QCString KmhtmlArchive::trim(const QCString &tmp){
         int st=0;
         int en=0;
@@ -910,5 +910,5 @@ QCString KmhtmlArchive::trim(QCString tm
 /*================================
 ================================*/
-KmhtmlEntry::KmhtmlEntry(KmhtmlArchive* arch,const QString fileName){
+KmhtmlEntry::KmhtmlEntry(KmhtmlArchive* arch,const QString &fileName){
         if(arch){
                 archive=arch;
@@ -997,5 +997,5 @@ bool KmhtmlEntry::findItemByName(){
 /*================================
 ================================*/
-QString KmhtmlEntry::escapeString(const QString str){
+QString KmhtmlEntry::escapeString(const QString &str){
         QString ret=QString::null;
         uint strLength=str.length();

--- kdenonbeta/kio_mhtml/kmhtmlarchive.h  #1.8:1.9
@@ -35,5 +35,5 @@ public:
 friend class KmhtmlEntry;
         //KmhtmlArchive();
-        KmhtmlArchive(QString mhtArchive);
+        KmhtmlArchive(const QString &mhtArchive);
         ~KmhtmlArchive();
         QString Type(){return type;};
@@ -69,10 +69,10 @@ private:
         bool readPartHeader(int it=-1);
         bool readItems();
-        void fixFileName(QByteArray exC,int i);
+        void fixFileName(const QByteArray &exC,int i);
         bool readItemsHeader(QCString* cont,int count=0);
         bool findLineEnd();
         void evalItemHeader(int id);
-        QCString removeControlChars(QCString msg);
-        QCString trim(QCString tmp);
+        QCString removeControlChars(const QCString &msg);
+        QCString trim(const QCString &tmp);
         
         struct elm{
@@ -149,5 +149,5 @@ class KmhtmlEntry{
 public:
         //KmhtmlEntry();
-        KmhtmlEntry(KmhtmlArchive* arch,const QString fileName);
+        KmhtmlEntry(KmhtmlArchive* arch,const QString &fileName);
         KmhtmlEntry(KmhtmlArchive* arch, int item);
         ~KmhtmlEntry();
@@ -180,5 +180,5 @@ private:
         bool findItemById();
         bool findItemByName();
-        QString escapeString(const QString str);
+        QString escapeString(const QString &str);
 };
 #endif


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

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