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

List:       kde-commits
Subject:    kdeutils/kdf
From:       Helge Deller <deller () kde ! org>
Date:       2004-12-19 17:15:47
Message-ID: 20041219171547.65F9C1BAA5 () office ! kde ! org
[Download RAW message or body]

CVS commit by deller: 

no need to use QRegExp() here any longer


  M +6 -7      disks.cpp   1.33


--- kdeutils/kdf/disks.cpp  #1.32:1.33
@@ -22,5 +22,4 @@
  */
 
-#include <qregexp.h>
 #include <qfileinfo.h>
 #include <qdir.h>
@@ -109,8 +108,8 @@ int DiskEntry::mount()
       }
 
-  cmdS.replace(QRegExp("%d"),deviceName());
-  cmdS.replace(QRegExp("%m"),mountPoint());
-  cmdS.replace(QRegExp("%t"),fsType());
-  cmdS.replace(QRegExp("%o"),mountOptions());
+  cmdS.replace(QString::fromLatin1("%d"),deviceName());
+  cmdS.replace(QString::fromLatin1("%m"),mountPoint());
+  cmdS.replace(QString::fromLatin1("%t"),fsType());
+  cmdS.replace(QString::fromLatin1("%o"),mountOptions());
 
   kdDebug() << "mount-cmd: [" << cmdS << "]" << endl;
@@ -128,6 +127,6 @@ int DiskEntry::umount()
       cmdS="umount %d";
 
-  cmdS.replace(QRegExp("%d"),deviceName());
-  cmdS.replace(QRegExp("%m"),mountPoint());
+  cmdS.replace(QString::fromLatin1("%d"),deviceName());
+  cmdS.replace(QString::fromLatin1("%m"),mountPoint());
 
   kdDebug() << "umount-cmd: [" << cmdS << "]" << endl;


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

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