Skip to content

Commit

Permalink
Fix coverity uninitialized members warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 18, 2017
1 parent b44cf5d commit 57beefd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrdbtablemodel.h
Expand Up @@ -54,7 +54,7 @@ class QgsOgrDbTableModel : public QStandardItemModel

private:
//! Number of tables in the model
int mTableCount;
int mTableCount = 0;
QString mPath;

QIcon iconForType( QgsWkbTypes::Type type ) const;
Expand Down
4 changes: 2 additions & 2 deletions src/providers/wms/qgsxyzconnection.h
Expand Up @@ -32,7 +32,7 @@ struct QgsXyzConnection
QString password;
// Referer
QString referer;
bool hidden;
bool hidden = false;

QString encodedUri() const;
};
Expand All @@ -55,4 +55,4 @@ class QgsXyzConnectionUtils
};


#endif // QGSXYZCONNECTION_H
#endif // QGSXYZCONNECTION_H

0 comments on commit 57beefd

Please sign in to comment.