summaryrefslogtreecommitdiff
path: root/platform/default/string_stdlib.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-14 16:19:15 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-14 22:14:11 +0300
commit6b5caf4b2c5d0beb3271bc0451709c9459341df8 (patch)
treeb6e5b2276f39ee8a4dda7c0e53bf7dc57d3e2940 /platform/default/string_stdlib.cpp
parent7413061f8e2dde553de2d6bd4021a1c6855fc1b0 (diff)
downloadqtlocation-mapboxgl-6b5caf4b2c5d0beb3271bc0451709c9459341df8.tar.gz
[tidy/linux] modernize-use-nullptr
Diffstat (limited to 'platform/default/string_stdlib.cpp')
-rw-r--r--platform/default/string_stdlib.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/default/string_stdlib.cpp b/platform/default/string_stdlib.cpp
index 4cd6c20777..8bae1ff008 100644
--- a/platform/default/string_stdlib.cpp
+++ b/platform/default/string_stdlib.cpp
@@ -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
{