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

Unified Diff: Source/modules/device_orientation/DeviceMotionEvent.cpp

Issue 1113403002: This CL clean up patch in DeviceMotionEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/device_orientation/DeviceMotionEvent.cpp
diff --git a/Source/modules/device_orientation/DeviceMotionEvent.cpp b/Source/modules/device_orientation/DeviceMotionEvent.cpp
index dda0e2da7c03a0cd06dfff3b6d1c7959c3749225..1fb8455ba3e7e305af5123173ad35d30c4ca1d52 100644
--- a/Source/modules/device_orientation/DeviceMotionEvent.cpp
+++ b/Source/modules/device_orientation/DeviceMotionEvent.cpp
@@ -63,7 +63,7 @@ void DeviceMotionEvent::initDeviceMotionEvent(const AtomicString& type, bool bub
DeviceAcceleration* DeviceMotionEvent::acceleration()
{
if (!m_deviceMotionData->acceleration())
- return 0;
+ return nullptr;
if (!m_acceleration)
m_acceleration = DeviceAcceleration::create(m_deviceMotionData->acceleration());
@@ -74,7 +74,7 @@ DeviceAcceleration* DeviceMotionEvent::acceleration()
DeviceAcceleration* DeviceMotionEvent::accelerationIncludingGravity()
{
if (!m_deviceMotionData->accelerationIncludingGravity())
- return 0;
+ return nullptr;
if (!m_accelerationIncludingGravity)
m_accelerationIncludingGravity = DeviceAcceleration::create(m_deviceMotionData->accelerationIncludingGravity());
@@ -85,7 +85,7 @@ DeviceAcceleration* DeviceMotionEvent::accelerationIncludingGravity()
DeviceRotationRate* DeviceMotionEvent::rotationRate()
{
if (!m_deviceMotionData->rotationRate())
- return 0;
+ return nullptr;
if (!m_rotationRate)
m_rotationRate = DeviceRotationRate::create(m_deviceMotionData->rotationRate());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698