summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__string
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-02-06 18:58:05 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-02-06 18:58:05 +0000
commitf951fc399fa5219682b8fd7fe537b43a64f18c1a (patch)
tree0217961279973cfdc8ee00c9d15a371f6997488a /libcxx/include/__string
parent9831b843d2044818d7a01a4b0f78c12c1c28192a (diff)
downloadbcm5719-llvm-f951fc399fa5219682b8fd7fe537b43a64f18c1a.tar.gz
bcm5719-llvm-f951fc399fa5219682b8fd7fe537b43a64f18c1a.zip
Fix misleading indentation; replace a couple of NULLs with nullptr. Resolves https://reviews.llvm.org/D42945 ; thanks to Bruce Mitchener for the patch.
llvm-svn: 324378
Diffstat (limited to 'libcxx/include/__string')
-rw-r--r--libcxx/include/__string10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/__string b/libcxx/include/__string
index d30c7fddc8d..44c55987f9f 100644
--- a/libcxx/include/__string
+++ b/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
}
OpenPOWER on IntegriCloud