summaryrefslogtreecommitdiff
path: root/base/message_loop/message_loop.cc
diff options
context:
space:
mode:
authorIvan Kotenkov <kotenkov@yandex-team.ru>2017-11-08 21:37:33 +0900
committerQijiang Fan <fqj@google.com>2020-06-05 07:42:25 +0900
commite88f3468d5b79113d99a2a1a3316d497a36e21d6 (patch)
tree5365517d62cb6419b07910e97dba2e1a4a619a88 /base/message_loop/message_loop.cc
parent3c7c505e497175cf8e1f908baf1be09d4a3d2347 (diff)
downloadlibchrome-e88f3468d5b79113d99a2a1a3316d497a36e21d6.tar.gz
Convert NULL and 0 to nullptr in base using clang-tidy.
Steps to replicate: 1. Build clang-tidy and clang-apply-replacements as described here: https://chromium.googlesource.com/chromium/src/+/lkcr/docs/clang_tidy.md 2. Build targets necessary for the change in out/gn. 3. Generate the compilation database: tools/clang/scripts/generate_compdb.py -p out/gn > compile_commands.json 4. Run clang-tidy and apply replacements: cd out/gn && PATH_TO_RUN_CLANG_TIDY/run-clang-tidy.py -p ../../ -clang-tidy-binary PATH_TO_CLANG_TIDY_BINARY -clang-apply-replacements-binary PATH_TO_CLANG_APPLY_REPLACEMENTS_BINARY -checks=-*,modernize-use-nullptr -fix -j 8 DIR_TO_CONVERT Bug: 403854, 776257 Change-Id: I920f43d09b9fab758a3b8663fcf0c405d8519ad4 Reviewed-on: https://chromium-review.googlesource.com/732105 Commit-Queue: Ivan Kotenkov <kotenkov@yandex-team.ru> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#514808} CrOS-Libchrome-Original-Commit: a16212a56df0ed74f3f1e3029563e57d53f8c031
Diffstat (limited to 'base/message_loop/message_loop.cc')
-rw-r--r--base/message_loop/message_loop.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index f60fd18064..ad181ecfca 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -45,7 +45,7 @@ base::ThreadLocalPointer<MessageLoop>* GetTLSMessageLoop() {
static auto* lazy_tls_ptr = new base::ThreadLocalPointer<MessageLoop>();
return lazy_tls_ptr;
}
-MessageLoop::MessagePumpFactory* message_pump_for_ui_factory_ = NULL;
+MessageLoop::MessagePumpFactory* message_pump_for_ui_factory_ = nullptr;
#if defined(OS_IOS)
using MessagePumpForIO = MessagePumpIOSForIO;
@@ -136,9 +136,9 @@ MessageLoop::~MessageLoop() {
// Tell the incoming queue that we are dying.
incoming_task_queue_->WillDestroyCurrentMessageLoop();
- incoming_task_queue_ = NULL;
- unbound_task_runner_ = NULL;
- task_runner_ = NULL;
+ incoming_task_queue_ = nullptr;
+ unbound_task_runner_ = nullptr;
+ task_runner_ = nullptr;
// OK, now make it so that no one can find us.
if (current() == this)