modernize C++: use nullptr

This commit is contained in:
wmayer
2023-08-05 16:52:01 +02:00
committed by Chris Hennes
parent 4f3729b872
commit 9f99285d59
12 changed files with 242 additions and 137 deletions

View File

@@ -3165,7 +3165,7 @@ std::map<std::string, App::Color> ViewProviderLink::getElementColors(const char
}
std::map<std::string, App::Color> ret;
for(const auto &v : colors) {
const char *pos = 0;
const char *pos = nullptr;
auto sobj = getObject()->resolve(v.first.c_str(),nullptr,nullptr,&pos);
if(!sobj || !pos)
continue;