Skip to content
Permalink
Browse files

Fix valgrind jump on uninitialised values warnings

  • Loading branch information
nyalldawson authored and m-kuhn committed Aug 7, 2017
1 parent f976e8b commit c6d88274cba0d19acc7ab8ed1f3d7a3d1084fdd3
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +2 −1 src/core/qgssnappingutils.cpp
  3. +1 −0 src/core/qgsvectorlayercache.cpp
@@ -6329,7 +6329,7 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer* vlayer, bool symbologyOpt

void QgisApp::checkForDeprecatedLabelsInProject()
{
bool ok;
bool ok = false;
QgsProject::instance()->readBoolEntry( "DeprecatedLabels", "/Enabled", false, &ok );
if ( ok ) // project already flagged (regardless of project property value)
{
@@ -609,7 +609,8 @@ void QgsSnappingUtils::readConfigFromProject()
setSnapOnIntersections( QgsProject::instance()->readNumEntry( "Digitizing", "/IntersectionSnapping", 0 ) );

//read snapping settings from project
bool snappingDefinedInProject, ok;
bool snappingDefinedInProject = false;
bool ok = false;
QStringList layerIdList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingList", QStringList(), &snappingDefinedInProject );
QStringList enabledList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingEnabledList", QStringList(), &ok );
QStringList toleranceList = QgsProject::instance()->readListEntry( "Digitizing", "/LayerSnappingToleranceList", QStringList(), &ok );
@@ -22,6 +22,7 @@
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer* layer, int cacheSize, QObject* parent )
: QObject( parent )
, mLayer( layer )
, mCacheGeometry( true )
, mFullCache( false )
{
mCache.setMaxCost( cacheSize );

0 comments on commit c6d8827

Please sign in to comment.
You can’t perform that action at this time.