Use nullptr instead lf C-styled NULL

This commit is contained in:
Kirill Bobyrev 2018-03-07 22:21:28 +03:00
parent 24634f2d15
commit 5cdbe6d019
No known key found for this signature in database
GPG key ID: C473398631E27767
22 changed files with 56 additions and 56 deletions

View file

@ -279,7 +279,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
else if (type == Lexer::Type::number &&
token.find ('.') == std::string::npos)
{
auto id = strtol (token.c_str (), NULL, 10);
auto id = strtol (token.c_str (), nullptr, 10);
if (id && id != ref.id)
Context::getContext ().tdb2.get (id, ref);
@ -375,7 +375,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
{
auto annos = ref.getAnnotations ();
int a = strtol (elements[1].c_str (), NULL, 10);
int a = strtol (elements[1].c_str (), nullptr, 10);
int count = 0;
// Count off the 'a'th annotation.
@ -403,7 +403,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
{
auto annos = ref.getAnnotations ();
int a = strtol (elements[1].c_str (), NULL, 10);
int a = strtol (elements[1].c_str (), nullptr, 10);
int count = 0;
// Count off the 'a'th annotation.