From 139f0e8a4b81fe3dcd9476ec5ee16ea5e74af901 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 2 Apr 2024 16:13:23 +0200 Subject: Use nullptr in all C++ code It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms. --- tests/unit/unicode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/unicode.cxx b/tests/unit/unicode.cxx index cb15e7e1..71815042 100644 --- a/tests/unit/unicode.cxx +++ b/tests/unit/unicode.cxx @@ -180,7 +180,7 @@ int main(int /*argc*/, char** /*argv*/) for (i = 0;i < ARRAY_SIZE(latin1utf8);i++) { /* Expected failure? */ - if (strchr(latin1utf8[i].latin1, '?') != NULL) + if (strchr(latin1utf8[i].latin1, '?') != nullptr) continue; out = rfb::latin1ToUTF8(latin1utf8[i].latin1); @@ -212,7 +212,7 @@ int main(int /*argc*/, char** /*argv*/) for (i = 0;i < ARRAY_SIZE(utf8utf16);i++) { /* Expected failure? */ - if (strstr(utf8utf16[i].utf8, "\xef\xbf\xbd") != NULL) + if (strstr(utf8utf16[i].utf8, "\xef\xbf\xbd") != nullptr) continue; wout = rfb::utf8ToUTF16(utf8utf16[i].utf8); -- cgit v1.2.3