replace nullptr with NULLPTR macro

This commit is contained in:
Yurui Zhou committed 2019-06-06 15:12:01 +08:00
1 parent dd981af5fb
commit 9b13d7f623
1 file changed
+4 -2
+4 -2
View File
@@ -22,6 +22,8 @@
#include <unordered_map>
#include <utility>
#include "arrow/util/macros.h"
namespace arrow {
template <typename HOLDER>
@@ -44,12 +46,12 @@ class concurrentMap {
}
HOLDER Lookup(jlong module_id) {
HOLDER result = nullptr;
HOLDER result = NULLPTR;
try {
result = map_.at(module_id);
} catch (const std::out_of_range& e) {
}
if (result != nullptr) {
if (result != NULLPTR) {
return result;
}
mtx_.lock();