Skip to content

Commit f4489c2

Browse files
committedOct 18, 2014
Fix some compiler/doxygen warnings
1 parent 2fe69e6 commit f4489c2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
 

‎src/core/dxf/qgsdxfexport.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
371371
int minDistAt = -1;
372372
int minDist = INT_MAX;
373373

374-
for ( int i = 1; i < sizeof( mDxfColors ) / sizeof( *mDxfColors ); ++i )
374+
for ( int i = 1; i < ( int )( sizeof( mDxfColors ) / sizeof( *mDxfColors ) ); ++i )
375375
{
376376
int dist = color_distance( color.rgba(), i );
377377
if ( dist == 0 )
@@ -390,7 +390,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
390390
writeGroup( exactMatchCode, minDistAt );
391391
int c = ( color.red() & 0xff ) * 0x10000 + ( color.green() & 0xff ) * 0x100 + ( color.blue() & 0xff );
392392
writeGroup( rgbCode, c );
393-
if( transparencyCode != -1 && color.alpha() < 255 )
393+
if ( transparencyCode != -1 && color.alpha() < 255 )
394394
writeGroup( transparencyCode, 0x2000000 | color.alpha() );
395395
}
396396

@@ -491,7 +491,7 @@ int QgsDxfExport::writeHandle( int code, int handle )
491491
if ( handle == 0 )
492492
handle = mNextHandleId++;
493493

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" );
495495

496496
writeGroup( code, QString( "%1" ).arg( handle, 0, 16 ) );
497497
return handle;
@@ -1000,7 +1000,7 @@ void QgsDxfExport::writeEntitiesSymbolLevels( QgsVectorLayer* layer )
10001000
{
10011001
QgsSymbolV2LevelItem& item = level[i];
10021002
QHash< QgsSymbolV2*, QList<QgsFeature> >::iterator levelIt = features.find( item.symbol() );
1003-
if( levelIt == features.end() )
1003+
if ( levelIt == features.end() )
10041004
{
10051005
QgsDebugMsg( QString( "No feature found for symbol on %1 %2.%3" ).arg( layer->id() ).arg( l ).arg( i ) );
10061006
continue;

‎src/core/qgsmaplayer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
205205
/** stores state in Dom node
206206
@param layerElement is a Dom element corresponding to ``maplayer'' tag
207207
@param document is a the dom document being written
208+
@param relativeBasePath base path for relative paths
208209
@note
209210
210211
The Dom node corresponds to a Dom document project file XML element to be

‎src/core/qgsvectorlayerfeatureiterator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ bool QgsVectorLayerFeatureIterator::prepareSimplification( const QgsSimplifyMeth
581581

582582
bool QgsVectorLayerFeatureIterator::providerCanSimplify( QgsSimplifyMethod::MethodType methodType ) const
583583
{
584+
Q_UNUSED( methodType );
584585
#if 0
585586
// TODO[MD]: after merge
586587
QgsVectorDataProvider* provider = L->dataProvider();

0 commit comments

Comments
 (0)
Please sign in to comment.