From 6c4541018ded6f73bc9730da933fa0e717214058 Mon Sep 17 00:00:00 2001 From: Vasily Date: Thu, 27 Dec 2018 14:05:37 +0100 Subject: [PATCH] Change NULL to nullptr --- src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp b/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp index aafa129..2ea948b 100644 --- a/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp +++ b/src/tabcontrollers/keyboardinput/KeyboardInputWindows.cpp @@ -22,12 +22,12 @@ void sendKeyboardInputRaw(int inputCount, LPINPUT input) { char *err; auto errCode = GetLastError(); if (!FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, - NULL, + nullptr, errCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language (LPTSTR)&err, 0, - NULL)){ + nullptr)){ LOG(ERROR) << "Error calling SendInput(): Could not get error message (" << errCode << ")"; } else { LOG(ERROR) << "Error calling SendInput(): " << err;