Skip to content
Permalink
Browse files

Initialize various struct/class member variables to avoid cppcheck wa…

…rnings
  • Loading branch information
rouault authored and nyalldawson committed Nov 9, 2020
1 parent 4f31931 commit 61f5cdfaa43872aeb9df16e8bc131502f14ec357
@@ -1054,10 +1054,10 @@ class CORE_EXPORT QgsLayoutItemMapGrid : public QgsLayoutItemMapItem

struct GridLineAnnotation
{
BorderSide border; // border on which the annotation is
BorderSide border = Left; // border on which the annotation is
QVector2D position; // position on the frame
QVector2D vector; // vector towards map center
double angle; // the (acute) angle formed between the vector and the border
double angle = 0; // the (acute) angle formed between the vector and the border
};

/**
@@ -569,7 +569,7 @@ struct QgsWmtsTileMatrix
QString identifier;
QString title, abstract;
QStringList keywords;
double scaleDenom;
double scaleDenom = 0;
QgsPointXY topLeft; //!< Top-left corner of the tile matrix in map units
int tileWidth; //!< Width of a tile in pixels
int tileHeight; //!< Height of a tile in pixels
@@ -643,7 +643,7 @@ struct QgsWmtsStyle
QString identifier;
QString title, abstract;
QStringList keywords;
bool isDefault;
bool isDefault = false;
QList<QgsWmtsLegendURL> legendURLs;
};

@@ -35,7 +35,7 @@ namespace QgsWfs

QStringList insertFeatureIds;

bool error;
bool error = false;

QString errorMsg;
};
@@ -56,7 +56,7 @@ namespace QgsWfs

int totalUpdated = 0;

bool error;
bool error = false;

QString errorMsg;
};
@@ -73,7 +73,7 @@ namespace QgsWfs

int totalDeleted = 0;

bool error;
bool error = false;

QString errorMsg;
};
@@ -37,7 +37,7 @@ namespace QgsWfs

QStringList insertFeatureIds;

bool error;
bool error = false;

QString errorMsg;
};
@@ -56,7 +56,7 @@ namespace QgsWfs

QStringList serverFids;

bool error;
bool error = false;

QString errorMsg;
};
@@ -71,7 +71,7 @@ namespace QgsWfs

QStringList serverFids;

bool error;
bool error = false;

QString errorMsg;
};

0 comments on commit 61f5cdf

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