diff options
author | Yi Kong <yikong@google.com> | 2018-07-17 16:55:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-07-17 16:55:08 +0000 |
commit | ab3203f38363e7b5fadfe281ed8870be6044b674 (patch) | |
tree | 61a92b5ab7368cfe2e2c292a2ec03ed4d40df1f0 /libutils/String16.cpp | |
parent | 17a02a33bba44ebc7517a11dfa6839b938e1e153 (diff) | |
parent | e1731a4f2e05f1abb4a45602067708851eaf1e14 (diff) |
Merge "[libutils] Modernize codebase by replacing NULL with nullptr"
Diffstat (limited to 'libutils/String16.cpp')
-rw-r--r-- | libutils/String16.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libutils/String16.cpp b/libutils/String16.cpp index 84d53dd76..f820b8b89 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -74,7 +74,7 @@ String16::String16() } String16::String16(StaticLinkage) - : mString(0) + : mString(nullptr) { // this constructor is used when we can't rely on the static-initializers // having run. In this case we always allocate an empty string. It's less @@ -336,7 +336,7 @@ status_t String16::makeLower() { const size_t N = size(); const char16_t* str = string(); - char16_t* edit = NULL; + char16_t* edit = nullptr; for (size_t i=0; i<N; i++) { const char16_t v = str[i]; if (v >= 'A' && v <= 'Z') { @@ -358,7 +358,7 @@ status_t String16::replaceAll(char16_t replaceThis, char16_t withThis) { const size_t N = size(); const char16_t* str = string(); - char16_t* edit = NULL; + char16_t* edit = nullptr; for (size_t i=0; i<N; i++) { if (str[i] == replaceThis) { if (!edit) { |