Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix 98c89cc
  • Loading branch information
jef-n committed Apr 30, 2017
1 parent bbdc77d commit 21f81fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/main.cpp
Expand Up @@ -734,7 +734,7 @@ int main( int argc, char *argv[] )
for ( int i = 0; i < args.size(); i++ )
{
QString arg = QDir::toNativeSeparators( QFileInfo( args[i] ).absoluteFilePath() );
if ( arg.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( arg.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
sProjectFileName = arg;
break;
Expand Down Expand Up @@ -1116,7 +1116,7 @@ int main( int argc, char *argv[] )
QgsDebugMsg( QString( "Trying to load file : %1" ).arg( ( *myIterator ) ) );
QString myLayerName = *myIterator;
// don't load anything with a .qgs extension - these are project files
if ( !myLayerName.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( !myLayerName.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
qgis->openLayer( myLayerName );
}
Expand Down
2 changes: 1 addition & 1 deletion tests/bench/main.cpp
Expand Up @@ -526,7 +526,7 @@ int main( int argc, char *argv[] )
QgsDebugMsg( QString( "Trying to load file : %1" ).arg( ( *myIterator ) ) );
QString myLayerName = *myIterator;
// don't load anything with a .qgs extension - these are project files
if ( !myLayerName.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( !myLayerName.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
fprintf( stderr, "Data files not yet supported\n" );
return 1;
Expand Down

0 comments on commit 21f81fb

Please sign in to comment.