[tidy/linux] modernize-use-nullptr

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-14 16:19:15 +03:00
parent 7413061f8e
commit 6b5caf4b2c
6 changed files with 21 additions and 21 deletions

View File

@@ -18,10 +18,10 @@ std::string uppercase(const std::string& str)
for (; itr < end; itr = nitr)
{
uint32_t code_point = 0;
char const* buf = 0;
char const* buf = nullptr;
nitr = _nu_toupper(itr, end, nu_utf8_read, &code_point, &buf, 0);
if (buf != 0)
nitr = _nu_toupper(itr, end, nu_utf8_read, &code_point, &buf, nullptr);
if (buf != nullptr)
{
do
{
@@ -51,10 +51,10 @@ std::string lowercase(const std::string& str)
for (; itr < end; itr = nitr)
{
uint32_t code_point = 0;
char const* buf = 0;
char const* buf = nullptr;
nitr = _nu_tolower(itr, end, nu_utf8_read, &code_point, &buf, 0);
if (buf != 0)
nitr = _nu_tolower(itr, end, nu_utf8_read, &code_point, &buf, nullptr);
if (buf != nullptr)
{
do
{