Skip to content

Commit

Permalink
fix warning & typo
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15049 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 14, 2011
1 parent 78cc7ab commit 5e24c9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/ogr_converter/translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
// QGIS
#include <qgsapplication.h>
#include <qgslogger.h>

// Qt4
#include <QString>
#include <QtDebug>

#include <ogr_api.h>
#include <cpl_error.h>
Expand Down Expand Up @@ -205,7 +207,7 @@ bool Translator::translateLayer( OGRDataSourceH srcDs, OGRLayerH srcLayer, OGRDa

if ( 0 == dstLayer )
{
qWarning( QString( "Layer %1 not found and CreateLayer failed [OGR: %2]\n" ).arg( mDstLayer ).arg( CPLGetLastErrorMsg() ).toUtf8() );
qWarning() << QString("Layer %1 not found and CreateLayer failed [OGR: %2]\n" ).arg( mDstLayer ).arg( CPLGetLastErrorMsg() );
return false;
}

Expand All @@ -217,7 +219,7 @@ bool Translator::translateLayer( OGRDataSourceH srcDs, OGRLayerH srcLayer, OGRDa
// Transfer attributes schema
if ( !copyFields( srcLayerDefn, dstLayer ) )
{
QgsDebugMsg( "Faild to copy fields from layer " + mSrcLayer );
QgsDebugMsg( "Failed to copy fields from layer " + mSrcLayer );
return false;
}

Expand Down

0 comments on commit 5e24c9f

Please sign in to comment.