[QGIS Commit] r10686 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Apr 30 05:00:48 EDT 2009


Author: jef
Date: 2009-04-30 05:00:48 -0400 (Thu, 30 Apr 2009)
New Revision: 10686

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
fix grass plugin compile errors (by removing Qt3 cruft)

Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-04-30 06:57:18 UTC (rev 10685)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2009-04-30 09:00:48 UTC (rev 10686)
@@ -51,7 +51,7 @@
 static QString getShortPath( const QString &path )
 {
   TCHAR buf[MAX_PATH];
-  GetShortPathName( path.ascii(), buf, MAX_PATH );
+  GetShortPathName( path.toAscii().data(), buf, MAX_PATH );
   return buf;
 }
 #endif
@@ -610,7 +610,7 @@
         QgsDebugMsg( "source = " + source );
 
         // Check GISBASE and LOCATION
-        QStringList split = QStringList::split( sep, source );
+        QStringList split = source.split( sep );
 
         if ( split.size() < 4 ) continue;
         split.pop_back(); // layer
@@ -682,7 +682,7 @@
         QgsDebugMsg( "source = " + source );
 
         // Check GISBASE and LOCATION
-        QStringList split = QStringList::split( sep, source );
+        QStringList split = source.split( sep );
 
         if ( split.size() < 4 ) continue;
         split.pop_back(); // layer



More information about the QGIS-commit mailing list