Skip to content

Commit c6d8827

Browse files
nyalldawsonm-kuhn
authored andcommittedAug 7, 2017
Fix valgrind jump on uninitialised values warnings
1 parent f976e8b commit c6d8827

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6329,7 +6329,7 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer* vlayer, bool symbologyOpt
63296329

63306330
void QgisApp::checkForDeprecatedLabelsInProject()
63316331
{
6332-
bool ok;
6332+
bool ok = false;
63336333
QgsProject::instance()->readBoolEntry( "DeprecatedLabels", "/Enabled", false, &ok );
63346334
if ( ok ) // project already flagged (regardless of project property value)
63356335
{

‎src/core/qgssnappingutils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,8 @@ void QgsSnappingUtils::readConfigFromProject()
609609
setSnapOnIntersections( QgsProject::instance()->readNumEntry( "Digitizing", "/IntersectionSnapping", 0 ) );
610610

611611
//read snapping settings from project
612-
bool snappingDefinedInProject, ok;
612+
bool snappingDefinedInProject = false;
613+
bool ok = false;
613614
QStringList layerIdList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingList", QStringList(), &snappingDefinedInProject );
614615
QStringList enabledList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingEnabledList", QStringList(), &ok );
615616
QStringList toleranceList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingToleranceList", QStringList(), &ok );

‎src/core/qgsvectorlayercache.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer* layer, int cacheSize, QObject* parent )
2323
: QObject( parent )
2424
, mLayer( layer )
25+
, mCacheGeometry( true )
2526
, mFullCache( false )
2627
{
2728
mCache.setMaxCost( cacheSize );

0 commit comments

Comments
 (0)
Please sign in to comment.