mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
replace nullptr with NULLPTR macro
This commit is contained in:
1 parent
dd981af5fb
commit
9b13d7f623
1 file changed
+4
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user