Skip to content

Commit 57beefd

Browse files
committed
Fix coverity uninitialized members warnings
1 parent b44cf5d commit 57beefd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/providers/ogr/qgsogrdbtablemodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class QgsOgrDbTableModel : public QStandardItemModel
5454

5555
private:
5656
//! Number of tables in the model
57-
int mTableCount;
57+
int mTableCount = 0;
5858
QString mPath;
5959

6060
QIcon iconForType( QgsWkbTypes::Type type ) const;

src/providers/wms/qgsxyzconnection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct QgsXyzConnection
3232
QString password;
3333
// Referer
3434
QString referer;
35-
bool hidden;
35+
bool hidden = false;
3636

3737
QString encodedUri() const;
3838
};
@@ -55,4 +55,4 @@ class QgsXyzConnectionUtils
5555
};
5656

5757

58-
#endif // QGSXYZCONNECTION_H
58+
#endif // QGSXYZCONNECTION_H

0 commit comments

Comments
 (0)