Skip to content
Permalink
Browse files
fix warning & typo
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15049 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 14, 2011
1 parent bbe80b3 commit 4e9965c58389dd9a8752f62c76554c7e5f7216f2
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/plugins/ogr_converter/translator.cpp
@@ -15,8 +15,10 @@
// QGIS
#include <qgsapplication.h>
#include <qgslogger.h>

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

#include <ogr_api.h>
#include <cpl_error.h>
@@ -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;
}

@@ -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;
}

0 comments on commit 4e9965c

Please sign in to comment.