clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
This commit is contained in:
1 parent
f28116b7da
commit
d802d39281
292 files changed
+1526
-1526
No files matched your search
@@ -46,7 +46,7 @@ Device::Input* Device::FindInput(const std::string &name) const
|
||||
return input;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Device::Output* Device::FindOutput(const std::string &name) const
|
||||
@@ -57,7 +57,7 @@ Device::Output* Device::FindOutput(const std::string &name) const
|
||||
return output;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -151,7 +151,7 @@ Device* DeviceContainer::FindDevice(const DeviceQualifier& devq) const
|
||||
return d;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Device::Input* DeviceContainer::FindInput(const std::string& name, const Device* def_dev) const
|
||||
@@ -171,7 +171,7 @@ Device::Input* DeviceContainer::FindInput(const std::string& name, const Device*
|
||||
return i;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Device::Output* DeviceContainer::FindOutput(const std::string& name, const Device* def_dev) const
|
||||
|
||||
Reference in new issue
Block a user