Sheet: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-22 17:20:17 +02:00
committed by wwmayer
parent e4239b74b6
commit 2ad2a0258d
4 changed files with 2 additions and 4 deletions

View File

@@ -253,7 +253,6 @@ Cell * PropertySheet::createCell(CellAddress address)
PropertySheet::PropertySheet(Sheet *_owner)
: owner(_owner)
, updateCount(0)
{
}

View File

@@ -298,7 +298,7 @@ private:
std::map<const App::DocumentObject*, boost::signals2::scoped_connection> depConnections;
int updateCount;
int updateCount = 0;
bool restoring = false;
};

View File

@@ -39,7 +39,6 @@ using namespace App;
SheetObserver::SheetObserver(App::Document * document, PropertySheet *_sheet)
: DocumentObserver(document)
, refCount(1)
, sheet(_sheet)
{
}

View File

@@ -42,7 +42,7 @@ public:
App::Document* getDocument() const { return App::DocumentObserver::getDocument(); }
private:
std::set<std::string> isUpdating;
unsigned int refCount;
unsigned int refCount{1};
PropertySheet * sheet;
};