Skip to content

Commit 34b6e2f

Browse files
committed
fix warnings
1 parent 74df875 commit 34b6e2f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/dwg/libdxfrw/intern/dwgutil.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ void dwgRSCodec::decode239I( unsigned char *in, unsigned char *out, duint32 blk
5858
}
5959
int r = rsc.decode( data );
6060
if ( r < 0 )
61+
{
6162
QgsDebugMsg( "WARNING: dwgRSCodec::decode239I, can't correct all errors" );
63+
}
6264
k = i * 239;
6365
for ( int j = 0; j < 239; j++ )
6466
{

src/core/qgsmaprendererjob.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ LayerRenderJobs QgsMapRendererJob::prepareJobs( QPainter* painter, QgsLabelingEn
217217
QListIterator<QgsMapLayer*> li( mSettings.layers() );
218218
li.toBack();
219219

220-
bool cacheValid = false;
221220
if ( mCache )
222221
{
223-
cacheValid = mCache->init( mSettings.visibleExtent(), mSettings.scale() );
222+
bool cacheValid = mCache->init( mSettings.visibleExtent(), mSettings.scale() );
224223
QgsDebugMsg( QString( "CACHE VALID: %1" ).arg( cacheValid ) );
225224
}
226225

0 commit comments

Comments
 (0)