Skip to content
Permalink
Browse files
fix warnings
  • Loading branch information
jef-n committed Jun 9, 2015
1 parent 8289891 commit b14d3ebb99d2689b11c7900c2468cac5799a0c7d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/mssql/qgsmssqlprovider.cpp
@@ -903,7 +903,7 @@ bool QgsMssqlProvider::addFeatures( QgsFeatureList & flist )
const QgsGeometry *geom = it->constGeometry();
if ( mUseWkb )
{
QByteArray bytea = QByteArray(( char* )geom->asWkb(), geom->wkbSize() );
QByteArray bytea = QByteArray(( char* )geom->asWkb(), ( int ) geom->wkbSize() );
query.addBindValue( bytea, QSql::In | QSql::Binary );
}
else
@@ -1221,7 +1221,7 @@ bool QgsMssqlProvider::changeGeometryValues( QgsGeometryMap & geometry_map )
// add geometry param
if ( mUseWkb )
{
QByteArray bytea = QByteArray(( char* )it->asWkb(), it->wkbSize() );
QByteArray bytea = QByteArray(( char* )it->asWkb(), ( int ) it->wkbSize() );
query.addBindValue( bytea, QSql::In | QSql::Binary );
}
else

0 comments on commit b14d3eb

Please sign in to comment.