Switch from NULL -> nullptr.
Test: Builds.
Change-Id: Idcdd337e6576d612aa6c18a431b3dfe0215efde0
diff --git a/base/HidlInternal.cpp b/base/HidlInternal.cpp
index 51f42f6..b41c0b9 100644
--- a/base/HidlInternal.cpp
+++ b/base/HidlInternal.cpp
@@ -105,7 +105,7 @@
}
struct dirent *file;
- while ((file = readdir(dir)) != NULL) {
+ while ((file = readdir(dir)) != nullptr) {
if (!isInstrumentationLib(file))
continue;
@@ -141,7 +141,7 @@
}
auto cb = (cbFun)dlsym(handle, ("HIDL_INSTRUMENTATION_FUNCTION_"
+ package + "_" + mInterfaceName).c_str());
- if ((error = dlerror()) != NULL) {
+ if ((error = dlerror()) != nullptr) {
LOG(WARNING)
<< "couldn't find symbol: HIDL_INSTRUMENTATION_FUNCTION_"
<< package << "_" << mInterfaceName << ", error: " << error;