Sheet: modernize C++: use default member init
This commit is contained in:
@@ -253,7 +253,6 @@ Cell * PropertySheet::createCell(CellAddress address)
|
||||
|
||||
PropertySheet::PropertySheet(Sheet *_owner)
|
||||
: owner(_owner)
|
||||
, updateCount(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ private:
|
||||
|
||||
std::map<const App::DocumentObject*, boost::signals2::scoped_connection> depConnections;
|
||||
|
||||
int updateCount;
|
||||
int updateCount = 0;
|
||||
bool restoring = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ using namespace App;
|
||||
|
||||
SheetObserver::SheetObserver(App::Document * document, PropertySheet *_sheet)
|
||||
: DocumentObserver(document)
|
||||
, refCount(1)
|
||||
, sheet(_sheet)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user