[QGIS Commit] r15049 - trunk/qgis/src/plugins/ogr_converter
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jan 14 18:24:15 EST 2011
Author: jef
Date: 2011-01-14 15:24:15 -0800 (Fri, 14 Jan 2011)
New Revision: 15049
Modified:
trunk/qgis/src/plugins/ogr_converter/translator.cpp
Log:
fix warning & typo
Modified: trunk/qgis/src/plugins/ogr_converter/translator.cpp
===================================================================
--- trunk/qgis/src/plugins/ogr_converter/translator.cpp 2011-01-14 20:47:27 UTC (rev 15048)
+++ trunk/qgis/src/plugins/ogr_converter/translator.cpp 2011-01-14 23:24:15 UTC (rev 15049)
@@ -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 @@
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 @@
// 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;
}
More information about the QGIS-commit
mailing list