Skip to content

Commit

Permalink
Fix some compiler/doxygen warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 18, 2014
1 parent 2fe69e6 commit f4489c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -371,7 +371,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
int minDistAt = -1;
int minDist = INT_MAX;

for ( int i = 1; i < sizeof( mDxfColors ) / sizeof( *mDxfColors ); ++i )
for ( int i = 1; i < ( int )( sizeof( mDxfColors ) / sizeof( *mDxfColors ) ); ++i )
{
int dist = color_distance( color.rgba(), i );
if ( dist == 0 )
Expand All @@ -390,7 +390,7 @@ void QgsDxfExport::writeGroup( QColor color, int exactMatchCode, int rgbCode, in
writeGroup( exactMatchCode, minDistAt );
int c = ( color.red() & 0xff ) * 0x10000 + ( color.green() & 0xff ) * 0x100 + ( color.blue() & 0xff );
writeGroup( rgbCode, c );
if( transparencyCode != -1 && color.alpha() < 255 )
if ( transparencyCode != -1 && color.alpha() < 255 )
writeGroup( transparencyCode, 0x2000000 | color.alpha() );
}

Expand Down Expand Up @@ -491,7 +491,7 @@ int QgsDxfExport::writeHandle( int code, int handle )
if ( handle == 0 )
handle = mNextHandleId++;

Q_ASSERT(( "DXF handle too large", handle < DXF_HANDMAX ) );
Q_ASSERT_X( handle < DXF_HANDMAX, "QgsDxfExport::writeHandle(int, int)", "DXF handle too large" );

writeGroup( code, QString( "%1" ).arg( handle, 0, 16 ) );
return handle;
Expand Down Expand Up @@ -1000,7 +1000,7 @@ void QgsDxfExport::writeEntitiesSymbolLevels( QgsVectorLayer* layer )
{
QgsSymbolV2LevelItem& item = level[i];
QHash< QgsSymbolV2*, QList<QgsFeature> >::iterator levelIt = features.find( item.symbol() );
if( levelIt == features.end() )
if ( levelIt == features.end() )
{
QgsDebugMsg( QString( "No feature found for symbol on %1 %2.%3" ).arg( layer->id() ).arg( l ).arg( i ) );
continue;
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsmaplayer.h
Expand Up @@ -205,6 +205,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
/** stores state in Dom node
@param layerElement is a Dom element corresponding to ``maplayer'' tag
@param document is a the dom document being written
@param relativeBasePath base path for relative paths
@note
The Dom node corresponds to a Dom document project file XML element to be
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -581,6 +581,7 @@ bool QgsVectorLayerFeatureIterator::prepareSimplification( const QgsSimplifyMeth

bool QgsVectorLayerFeatureIterator::providerCanSimplify( QgsSimplifyMethod::MethodType methodType ) const
{
Q_UNUSED( methodType );
#if 0
// TODO[MD]: after merge
QgsVectorDataProvider* provider = L->dataProvider();
Expand Down

0 comments on commit f4489c2

Please sign in to comment.