Modernize to C++11: NULL => nullptr.

No functional change.
This commit is contained in:
Haojian Wu 2016-07-10 11:52:28 +02:00
parent 9c74ea4bf4
commit fab02809c6
29 changed files with 82 additions and 82 deletions

View file

@ -20,11 +20,11 @@ namespace {
RenderView* GetCurrentRenderView() {
WebLocalFrame* frame = WebLocalFrame::frameForCurrentContext();
if (!frame)
return NULL;
return nullptr;
WebView* view = frame->view();
if (!view)
return NULL; // can happen during closing.
return nullptr; // can happen during closing.
return RenderView::FromWebView(view);
}
@ -33,7 +33,7 @@ void Send(mate::Arguments* args,
const base::string16& channel,
const base::ListValue& arguments) {
RenderView* render_view = GetCurrentRenderView();
if (render_view == NULL)
if (render_view == nullptr)
return;
bool success = render_view->Send(new AtomViewHostMsg_Message(
@ -49,7 +49,7 @@ base::string16 SendSync(mate::Arguments* args,
base::string16 json;
RenderView* render_view = GetCurrentRenderView();
if (render_view == NULL)
if (render_view == nullptr)
return json;
IPC::SyncMessage* message = new AtomViewHostMsg_Message_Sync(