From 1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 8 Feb 2024 22:35:09 +0100 Subject: C++11: Use default member initializers This patch is not exhaustive. --- src/gui/setup_players.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/setup_players.cpp') diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index 529e69a5..17e59845 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -86,7 +86,6 @@ class PlayerTableModel : public TableModel { public: PlayerTableModel() : - mPlayers(nullptr), mListModel(new PlayerRelationListModel) { playerRelationsUpdated(); @@ -175,7 +174,7 @@ public: } protected: - std::vector *mPlayers; + std::vector *mPlayers = nullptr; std::vector mWidgets; PlayerRelationListModel *mListModel; }; -- cgit v1.2.3-70-g09d2