Use nullptr instead lf C-styled NULL

This commit is contained in:
Kirill Bobyrev
2018-03-07 22:21:28 +03:00
committed by Paul Beckingham
parent 6f19a3fbae
commit 511a235215
22 changed files with 56 additions and 56 deletions

View File

@@ -35,7 +35,7 @@
#include <shared.h>
#include <format.h>
static std::vector <Task>* global_data = NULL;
static std::vector <Task>* global_data = nullptr;
static std::vector <std::string> global_keys;
static bool sort_compare (int, int);
@@ -194,13 +194,13 @@ static bool sort_compare (int left, int right)
}
// UDAs.
else if ((column = Context::getContext ().columns[field]) != NULL)
else if ((column = Context::getContext ().columns[field]) != nullptr)
{
std::string type = column->type ();
if (type == "numeric")
{
auto left_real = strtof (((*global_data)[left].get_ref (field)).c_str (), NULL);
auto right_real = strtof (((*global_data)[right].get_ref (field)).c_str (), NULL);
auto left_real = strtof (((*global_data)[left].get_ref (field)).c_str (), nullptr);
auto right_real = strtof (((*global_data)[right].get_ref (field)).c_str (), nullptr);
if (left_real == right_real)
continue;