summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorYi Kong2018-07-13 19:39:22 -0500
committerYi Kong2018-07-13 19:50:55 -0500
commitc8d09ddceb6ed9771b100c36fe4ca81d6ee1cfb2 (patch)
tree96692c3a30c1e9237194294b55ec8fc6b2f1b71f /liblog
parentdc8483cc04ea9d2a716a4ba0916eb3941b54156c (diff)
downloadplatform-system-core-c8d09ddceb6ed9771b100c36fe4ca81d6ee1cfb2.tar.gz
platform-system-core-c8d09ddceb6ed9771b100c36fe4ca81d6ee1cfb2.tar.xz
platform-system-core-c8d09ddceb6ed9771b100c36fe4ca81d6ee1cfb2.zip
[logd] Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I15ccb9cfc9967dae4320d9690f5097bc2f7d5bfe
Diffstat (limited to 'liblog')
-rw-r--r--liblog/include/private/android_logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblog/include/private/android_logger.h b/liblog/include/private/android_logger.h
index 965de375c..b927b4677 100644
--- a/liblog/include/private/android_logger.h
+++ b/liblog/include/private/android_logger.h
@@ -173,7 +173,7 @@ class __android_log_event_list : public android_log_event_list {
173#if defined(_USING_LIBCXX) 173#if defined(_USING_LIBCXX)
174 operator std::string() { 174 operator std::string() {
175 if (ret) return std::string(""); 175 if (ret) return std::string("");
176 const char* cp = NULL; 176 const char* cp = nullptr;
177 ssize_t len = android_log_write_list_buffer(ctx, &cp); 177 ssize_t len = android_log_write_list_buffer(ctx, &cp);
178 if (len < 0) ret = len; 178 if (len < 0) ret = len;
179 if (!cp || (len <= 0)) return std::string(""); 179 if (!cp || (len <= 0)) return std::string("");