refactor: replace remaining NULL
with nullptr
(#40053)
refactor: use nullptr everywhere
This commit is contained in:
parent
9d0e6d09f0
commit
04b2ba84cd
34 changed files with 98 additions and 93 deletions
|
@ -65,7 +65,7 @@ bool AppendFile(const JumpListItem& item, IObjectCollection* collection) {
|
|||
DCHECK(collection);
|
||||
|
||||
CComPtr<IShellItem> file;
|
||||
if (SUCCEEDED(SHCreateItemFromParsingName(item.path.value().c_str(), NULL,
|
||||
if (SUCCEEDED(SHCreateItemFromParsingName(item.path.value().c_str(), nullptr,
|
||||
IID_PPV_ARGS(&file))))
|
||||
return SUCCEEDED(collection->AddObject(file));
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ NotifyIconHost::NotifyIconHost() {
|
|||
base::win::InitializeWindowClass(
|
||||
kNotifyIconHostWindowClass,
|
||||
&base::win::WrappedWindowProc<NotifyIconHost::WndProcStatic>, 0, 0, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, &window_class);
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr, &window_class);
|
||||
instance_ = window_class.hInstance;
|
||||
atom_ = RegisterClassEx(&window_class);
|
||||
CHECK(atom_);
|
||||
|
@ -144,7 +144,7 @@ LRESULT CALLBACK NotifyIconHost::WndProc(HWND hwnd,
|
|||
}
|
||||
return TRUE;
|
||||
} else if (message == kNotifyIconMessage) {
|
||||
NotifyIcon* win_icon = NULL;
|
||||
NotifyIcon* win_icon = nullptr;
|
||||
|
||||
// Find the selected status icon.
|
||||
for (NotifyIcons::const_iterator i(notify_icons_.begin());
|
||||
|
|
|
@ -182,7 +182,7 @@ bool TaskbarHost::SetThumbnailClip(HWND window, const gfx::Rect& region) {
|
|||
return false;
|
||||
|
||||
if (region.IsEmpty()) {
|
||||
return SUCCEEDED(taskbar_->SetThumbnailClip(window, NULL));
|
||||
return SUCCEEDED(taskbar_->SetThumbnailClip(window, nullptr));
|
||||
} else {
|
||||
RECT rect =
|
||||
display::win::ScreenWin::DIPToScreenRect(window, region).ToRECT();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue