Replaced NULL with nullptr in Android CDM.
[ Merge of http://go/wvgerrit/85503 ] Replacing a few instances of C's NULL with C++'s nullptr in some of the smaller sub-directories in the CDM. Note that clang-format has performed additional changes to some of the test files that have not yet been formatted. Bug: 120602075 Test: Android unittest Change-Id: I926135ed4b85e9d2d58a014b4a62098b0cb7a373
This commit is contained in:
@@ -19,7 +19,7 @@ class Timer::Impl : virtual public android::RefBase {
|
||||
private:
|
||||
class ImplThread : public android::Thread {
|
||||
public:
|
||||
ImplThread() : Thread(false), handler_(NULL), period_ns_(0) {}
|
||||
ImplThread() : Thread(false), handler_(nullptr), period_ns_(0) {}
|
||||
virtual ~ImplThread() {};
|
||||
|
||||
bool Start(TimerHandler *handler, uint32_t time_in_secs) {
|
||||
@@ -69,7 +69,7 @@ class Timer::Impl : virtual public android::RefBase {
|
||||
}
|
||||
|
||||
bool IsRunning() {
|
||||
return (impl_thread_ != NULL) && (impl_thread_->isRunning());
|
||||
return (impl_thread_ != nullptr) && (impl_thread_->isRunning());
|
||||
}
|
||||
|
||||
CORE_DISALLOW_COPY_AND_ASSIGN(Impl);
|
||||
|
||||
Reference in New Issue
Block a user