| Index: remoting/host/input_injector_mac.cc
|
| diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc
|
| index b51b6152235cfb7553d651faa449ccb2e6294d37..d3b96d8c53d59ec476cc0363ac83ed1f94ce9084 100644
|
| --- a/remoting/host/input_injector_mac.cc
|
| +++ b/remoting/host/input_injector_mac.cc
|
| @@ -36,7 +36,7 @@ void CreateAndPostKeyEvent(int keycode,
|
| int flags,
|
| const base::string16& unicode) {
|
| base::ScopedCFTypeRef<CGEventRef> eventRef(
|
| - CGEventCreateKeyboardEvent(NULL, keycode, pressed));
|
| + CGEventCreateKeyboardEvent(nullptr, keycode, pressed));
|
| if (eventRef) {
|
| CGEventSetFlags(eventRef, flags);
|
| if (!unicode.empty())
|
| @@ -303,7 +303,7 @@ void InputInjectorMac::Core::InjectMouseEvent(const MouseEvent& event) {
|
| int delta_x = static_cast<int>(event.wheel_delta_x());
|
| int delta_y = static_cast<int>(event.wheel_delta_y());
|
| base::ScopedCFTypeRef<CGEventRef> event(CGEventCreateScrollWheelEvent(
|
| - NULL, kCGScrollEventUnitPixel, 2, delta_y, delta_x));
|
| + nullptr, kCGScrollEventUnitPixel, 2, delta_y, delta_x));
|
| if (event)
|
| CGEventPost(kCGSessionEventTap, event);
|
| }
|
|
|