Replace 0 and NULL with nullptr (#7827)

This commit is contained in:
Hielke Morsink authored and GitHub committed 2018-07-25 22:49:20 +02:00
1 parent 80f67247dc
commit 0b03464186
10 files changed
+49 -49

No files matched your search

+2 -2
View File
@@ -374,9 +374,9 @@ namespace ObjectFactory
auto originalName = originalId;
if (originalId.length() == 8 + 1 + 8 + 1 + 8)
{
entry.flags = std::stoul(originalId.substr(0, 8), 0, 16);
entry.flags = std::stoul(originalId.substr(0, 8), nullptr, 16);
originalName = originalId.substr(9, 8);
entry.checksum = std::stoul(originalId.substr(18, 8), 0, 16);
entry.checksum = std::stoul(originalId.substr(18, 8), nullptr, 16);
}
auto minLength = std::min<size_t>(8, originalName.length());
memcpy(entry.name, originalName.c_str(), minLength);