@@ -229,7 +229,7 @@ void QgsMssqlFeatureIterator::BuildStatement( const QgsFeatureRequest &request )
229
229
{
230
230
QString part;
231
231
part = compiler.result ();
232
- part += clause.ascending () ? " ASC" : " DESC" ;
232
+ part += clause.ascending () ? QStringLiteral ( " ASC" ) : QStringLiteral ( " DESC" ) ;
233
233
orderByParts << part;
234
234
}
235
235
else
@@ -292,7 +292,7 @@ bool QgsMssqlFeatureIterator::fetchFeature( QgsFeature &feature )
292
292
293
293
if ( !mDatabase .open () )
294
294
{
295
- QgsDebugMsg ( " Failed to open database" );
295
+ QgsDebugMsg ( QStringLiteral ( " Failed to open database" ) );
296
296
QgsDebugMsg ( mDatabase .lastError ().text () );
297
297
return false ;
298
298
}
@@ -310,7 +310,7 @@ bool QgsMssqlFeatureIterator::fetchFeature( QgsFeature &feature )
310
310
311
311
if ( !mQuery ->isActive () )
312
312
{
313
- QgsDebugMsg ( " Read attempt on inactive query" );
313
+ QgsDebugMsg ( QStringLiteral ( " Read attempt on inactive query" ) );
314
314
return false ;
315
315
}
316
316
@@ -336,7 +336,7 @@ bool QgsMssqlFeatureIterator::fetchFeature( QgsFeature &feature )
336
336
QByteArray ar = mQuery ->record ().value ( mSource ->mGeometryColName ).toByteArray ();
337
337
if ( !ar.isEmpty () )
338
338
{
339
- if ( unsigned char *wkb = mParser .ParseSqlGeometry ( ( unsigned char * ) ar.data (), ar.size () ) )
339
+ if ( unsigned char *wkb = mParser .ParseSqlGeometry ( reinterpret_cast < unsigned char * >( ar.data () ), ar.size () ) )
340
340
{
341
341
QgsGeometry g;
342
342
g.fromWkb ( wkb, mParser .GetWkbLen () );
@@ -374,7 +374,7 @@ bool QgsMssqlFeatureIterator::rewind()
374
374
375
375
if ( mStatement .isEmpty () )
376
376
{
377
- QgsDebugMsg ( " QgsMssqlFeatureIterator::rewind on empty statement" );
377
+ QgsDebugMsg ( QStringLiteral ( " QgsMssqlFeatureIterator::rewind on empty statement" ) );
378
378
return false ;
379
379
}
380
380
0 commit comments