summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Kong2018-07-13 19:39:22 -0500
committerYi Kong2018-07-13 19:50:55 -0500
commitc8d09ddceb6ed9771b100c36fe4ca81d6ee1cfb2 (patch)
tree96692c3a30c1e9237194294b55ec8fc6b2f1b71f /logd/LogTags.h
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 'logd/LogTags.h')
-rw-r--r--logd/LogTags.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/logd/LogTags.h b/logd/LogTags.h
index 203318d91..e4d165a7c 100644
--- a/logd/LogTags.h
+++ b/logd/LogTags.h
@@ -87,14 +87,14 @@ class LogTags {
87 bool RebuildFileEventLogTags(const char* filename, bool warn = true); 87 bool RebuildFileEventLogTags(const char* filename, bool warn = true);
88 88
89 void AddEventLogTags(uint32_t tag, uid_t uid, const std::string& Name, 89 void AddEventLogTags(uint32_t tag, uid_t uid, const std::string& Name,
90 const std::string& Format, const char* source = NULL, 90 const std::string& Format, const char* source = nullptr,
91 bool warn = false); 91 bool warn = false);
92 92
93 void WriteDynamicEventLogTags(uint32_t tag, uid_t uid); 93 void WriteDynamicEventLogTags(uint32_t tag, uid_t uid);
94 void WriteDebugEventLogTags(uint32_t tag, uid_t uid); 94 void WriteDebugEventLogTags(uint32_t tag, uid_t uid);
95 // push tag details to persistent storage 95 // push tag details to persistent storage
96 void WritePersistEventLogTags(uint32_t tag, uid_t uid = AID_ROOT, 96 void WritePersistEventLogTags(uint32_t tag, uid_t uid = AID_ROOT,
97 const char* source = NULL); 97 const char* source = nullptr);
98 98
99 static const uint32_t emptyTag = uint32_t(-1); 99 static const uint32_t emptyTag = uint32_t(-1);
100 100