Spreadsheet: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:10:37 +01:00
parent 80ca13c667
commit 2c229d3bc0
28 changed files with 157 additions and 157 deletions

View File

@@ -132,8 +132,8 @@ void PropertyColumnWidths::Restore(Base::XMLReader &reader)
Cnt = reader.hasAttribute("Count") ? reader.getAttributeAsInteger("Count") : 0;
for (int i = 0; i < Cnt; i++) {
reader.readElement("Column");
const char* name = reader.hasAttribute("name") ? reader.getAttribute("name") : 0;
const char * width = reader.hasAttribute("width") ? reader.getAttribute("width") : 0;
const char* name = reader.hasAttribute("name") ? reader.getAttribute("name") : nullptr;
const char * width = reader.hasAttribute("width") ? reader.getAttribute("width") : nullptr;
try {
if (name && width) {