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

List:       kde-commits
Subject:    kdelibs/kioslave/file
From:       Kévin Ottens <ervin () ipsquad ! net>
Date:       2004-12-15 22:25:49
Message-ID: 20041215222549.0C22D1B9DE () office ! kde ! org
[Download RAW message or body]

CVS commit by ervin: 

Fixing some const iterator and encoding issues. I discussed it with dfaure
and forgot... damn! Sorry everybody, I really sucked for this one.

"approved by dfaure... twice"(tm) :-/


  M +5 -5      file.cc   1.155


--- kdelibs/kioslave/file/file.cc  #1.154:1.155
@@ -1449,5 +1449,5 @@ bool FileProtocol::pmount(const QString 
 
     QCString buffer;
-    buffer.sprintf( "%s %s", pmountProg.latin1(),
+    buffer.sprintf( "%s %s", QFile::encodeName(pmountProg).data(),
                     QFile::encodeName(KProcess::quote(dev)).data() );
 
@@ -1463,6 +1463,6 @@ bool FileProtocol::pumount(const QString
     KMountPoint::List mtab = KMountPoint::currentMountPoints();
 
-    KMountPoint::List::iterator it = mtab.begin();
-    KMountPoint::List::iterator end = mtab.end();
+    KMountPoint::List::const_iterator it = mtab.begin();
+    KMountPoint::List::const_iterator end = mtab.end();
 
     QString dev;
@@ -1490,5 +1490,5 @@ bool FileProtocol::pumount(const QString
 
     QCString buffer;
-    buffer.sprintf( "%s %s", pumountProg.latin1(),
+    buffer.sprintf( "%s %s", QFile::encodeName(pumountProg).data(),
                     QFile::encodeName(KProcess::quote(dev)).data() );
 


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

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