@@ -371,7 +371,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
371
371
int minDistAt = -1 ;
372
372
int minDist = INT_MAX;
373
373
374
- for ( int i = 1 ; i < sizeof ( mDxfColors ) / sizeof ( *mDxfColors ); ++i )
374
+ for ( int i = 1 ; i < ( int )( sizeof ( mDxfColors ) / sizeof ( *mDxfColors ) ); ++i )
375
375
{
376
376
int dist = color_distance ( color.rgba (), i );
377
377
if ( dist == 0 )
@@ -390,7 +390,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
390
390
writeGroup ( exactMatchCode, minDistAt );
391
391
int c = ( color.red () & 0xff ) * 0x10000 + ( color.green () & 0xff ) * 0x100 + ( color.blue () & 0xff );
392
392
writeGroup ( rgbCode, c );
393
- if ( transparencyCode != -1 && color.alpha () < 255 )
393
+ if ( transparencyCode != -1 && color.alpha () < 255 )
394
394
writeGroup ( transparencyCode, 0x2000000 | color.alpha () );
395
395
}
396
396
@@ -491,7 +491,7 @@ int QgsDxfExport::writeHandle( int code, int handle )
491
491
if ( handle == 0 )
492
492
handle = mNextHandleId ++;
493
493
494
- Q_ASSERT (( " DXF handle too large" , handle < DXF_HANDMAX ) );
494
+ Q_ASSERT_X ( handle < DXF_HANDMAX, " QgsDxfExport::writeHandle(int, int) " , " DXF handle too large" );
495
495
496
496
writeGroup ( code, QString ( " %1" ).arg ( handle, 0 , 16 ) );
497
497
return handle;
@@ -1000,7 +1000,7 @@ void QgsDxfExport::writeEntitiesSymbolLevels( QgsVectorLayer* layer )
1000
1000
{
1001
1001
QgsSymbolV2LevelItem& item = level[i];
1002
1002
QHash< QgsSymbolV2*, QList<QgsFeature> >::iterator levelIt = features.find ( item.symbol () );
1003
- if ( levelIt == features.end () )
1003
+ if ( levelIt == features.end () )
1004
1004
{
1005
1005
QgsDebugMsg ( QString ( " No feature found for symbol on %1 %2.%3" ).arg ( layer->id () ).arg ( l ).arg ( i ) );
1006
1006
continue ;
0 commit comments