]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/x11/keyboard.cpp
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / input / x11 / keyboard.cpp
index ed959dafe40e9fb643202a2fc7eea0bb9b9b4e2d..00b6448e316bf84232fc64e0245e3c4010abe209 100644 (file)
@@ -33,7 +33,7 @@ void Keyboard::input_event(const Graphics::Window::Event &event)
                        if(event.xevent.type==KeyPress)
                        {
                                char ch;
-                               if(XLookupString(const_cast<XKeyEvent *>(&event.xevent.xkey), &ch, 1, 0, 0))
+                               if(XLookupString(const_cast<XKeyEvent *>(&event.xevent.xkey), &ch, 1, nullptr, nullptr))
                                        // XLookupString always returns Latin-1
                                        signal_character.emit(static_cast<unsigned char>(ch));
                        }