summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/include/__string
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcxx/include/__string')
-rw-r--r--lib/libcxx/include/__string10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcxx/include/__string b/lib/libcxx/include/__string
index d30c7fddc8d..44c55987f9f 100644
--- a/lib/libcxx/include/__string
+++ b/lib/libcxx/include/__string
@@ -266,7 +266,7 @@ const char*
char_traits<char>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
{
if (__n == 0)
- return NULL;
+ return nullptr;
#if __has_feature(cxx_constexpr_string_builtins)
return __builtin_char_memchr(__s, to_int_type(__a), __n);
#elif _LIBCPP_STD_VER <= 14
@@ -278,7 +278,7 @@ char_traits<char>::find(const char_type* __s, size_t __n, const char_type& __a)
return __s;
++__s;
}
- return NULL;
+ return nullptr;
#endif
}
@@ -372,9 +372,9 @@ const wchar_t*
char_traits<wchar_t>::find(const char_type* __s, size_t __n, const char_type& __a) _NOEXCEPT
{
if (__n == 0)
- return NULL;
+ return nullptr;
#if __has_feature(cxx_constexpr_string_builtins)
- return __builtin_wmemchr(__s, __a, __n);
+ return __builtin_wmemchr(__s, __a, __n);
#elif _LIBCPP_STD_VER <= 14
return wmemchr(__s, __a, __n);
#else
@@ -384,7 +384,7 @@ char_traits<wchar_t>::find(const char_type* __s, size_t __n, const char_type& __
return __s;
++__s;
}
- return NULL;
+ return nullptr;
#endif
}