diff options
author | 2018-01-09 18:22:43 -0800 | |
---|---|---|
committer | 2018-01-10 10:54:38 -0800 | |
commit | 566a3b4a1d1a2a6d38257113700eea92aa44ea2b (patch) | |
tree | c65bbfda9d8315e611bcadc4274b6ba5165d8fbc /services/surfaceflinger/EventThread.cpp | |
parent | 44c26300d9dbd478d91cba2aab1861fc4d5f3f41 (diff) |
[SurfaceFlinger] Replace NULL with nullptr.
Test: make
Change-Id: Ia0ecb3160cd5fddf22fb7100c1759d62e723d0b7
Diffstat (limited to 'services/surfaceflinger/EventThread.cpp')
-rw-r--r-- | services/surfaceflinger/EventThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/EventThread.cpp b/services/surfaceflinger/EventThread.cpp index a1a042039c..5c0e3b37f3 100644 --- a/services/surfaceflinger/EventThread.cpp +++ b/services/surfaceflinger/EventThread.cpp @@ -216,7 +216,7 @@ Vector< sp<EventThread::Connection> > EventThread::waitForEvent( size_t count = mDisplayEventConnections.size(); for (size_t i=0 ; i<count ; ) { sp<Connection> connection(mDisplayEventConnections[i].promote()); - if (connection != NULL) { + if (connection != nullptr) { bool added = false; if (connection->count >= 0) { // we need vsync events because at least @@ -346,7 +346,7 @@ void EventThread::dump(String8& result) const { sp<Connection> connection = mDisplayEventConnections.itemAt(i).promote(); result.appendFormat(" %p: count=%d\n", - connection.get(), connection!=NULL ? connection->count : 0); + connection.get(), connection != nullptr ? connection->count : 0); } } |