Skip to content

Commit 560153d

Browse files
author
jef
committed
fix grass plugin compile errors (by removing Qt3 cruft)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10686 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b95617c commit 560153d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/grass/qgsgrassmodule.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C"
5151
static QString getShortPath( const QString &path )
5252
{
5353
TCHAR buf[MAX_PATH];
54-
GetShortPathName( path.ascii(), buf, MAX_PATH );
54+
GetShortPathName( path.toAscii().data(), buf, MAX_PATH );
5555
return buf;
5656
}
5757
#endif
@@ -610,7 +610,7 @@ void QgsGrassModuleStandardOptions::freezeOutput()
610610
QgsDebugMsg( "source = " + source );
611611

612612
// Check GISBASE and LOCATION
613-
QStringList split = QStringList::split( sep, source );
613+
QStringList split = source.split( sep );
614614

615615
if ( split.size() < 4 ) continue;
616616
split.pop_back(); // layer
@@ -682,7 +682,7 @@ void QgsGrassModuleStandardOptions::thawOutput()
682682
QgsDebugMsg( "source = " + source );
683683

684684
// Check GISBASE and LOCATION
685-
QStringList split = QStringList::split( sep, source );
685+
QStringList split = source.split( sep );
686686

687687
if ( split.size() < 4 ) continue;
688688
split.pop_back(); // layer

0 commit comments

Comments
 (0)