Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11638)

Unified Diff: chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc

Issue 2707313002: Gtk: Change NULL to nullptr (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc
diff --git a/chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc b/chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc
index 1a56802cbe234dd91e3112feaa121a04c5082c80..59244f410da8904f9d55e73658af30dc07868802 100644
--- a/chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc
+++ b/chrome/browser/ui/libgtkui/gtk_key_bindings_handler.cc
@@ -81,7 +81,7 @@ bool Gtk2KeyBindingsHandler::MatchEvent(
GtkWidget* Gtk2KeyBindingsHandler::CreateNewHandler() {
Handler* handler =
- static_cast<Handler*>(g_object_new(HandlerGetType(), NULL));
+ static_cast<Handler*>(g_object_new(HandlerGetType(), nullptr));
handler->owner = this;
@@ -133,7 +133,7 @@ void Gtk2KeyBindingsHandler::BuildGdkEventKeyFromXEvent(
gdk_keymap_translate_keyboard_state(
keymap, gdk_event->hardware_keycode,
static_cast<GdkModifierType>(gdk_event->state), gdk_event->group,
- &gdk_event->keyval, NULL, NULL, &consumed);
+ &gdk_event->keyval, nullptr, nullptr, &consumed);
state = static_cast<GdkModifierType>(gdk_event->state & ~consumed);
gdk_keymap_add_virtual_modifiers(keymap, &state);
@@ -141,7 +141,7 @@ void Gtk2KeyBindingsHandler::BuildGdkEventKeyFromXEvent(
}
void Gtk2KeyBindingsHandler::HandlerInit(Handler* self) {
- self->owner = NULL;
+ self->owner = nullptr;
}
void Gtk2KeyBindingsHandler::HandlerClassInit(HandlerClass* klass) {
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_key_bindings_handler.h ('k') | chrome/browser/ui/libgtkui/gtk_status_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698