Spreadsheet: modernize C++11
* use nullptr
This commit is contained in:
@@ -126,8 +126,8 @@ void PropertyRowHeights::Restore(Base::XMLReader &reader)
|
||||
Cnt = reader.hasAttribute("Count") ? reader.getAttributeAsInteger("Count") : 0;
|
||||
for (int i = 0; i < Cnt; i++) {
|
||||
reader.readElement("Row");
|
||||
const char* name = reader.hasAttribute("name") ? reader.getAttribute("name") : 0;
|
||||
const char * height = reader.hasAttribute("height") ? reader.getAttribute("height") : 0;
|
||||
const char* name = reader.hasAttribute("name") ? reader.getAttribute("name") : nullptr;
|
||||
const char * height = reader.hasAttribute("height") ? reader.getAttribute("height") : nullptr;
|
||||
|
||||
try {
|
||||
if (name && height) {
|
||||
|
||||
Reference in New Issue
Block a user