Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 9, 2015
1 parent 8289891 commit b14d3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b14d3eb

Please sign in to comment.