From 6a2be9ab7812bd822dad0478e470fa78c7bc383b Mon Sep 17 00:00:00 2001 From: Jiawen Geng Date: Tue, 14 Jan 2020 01:11:17 -0800 Subject: [PATCH] use nullptr in Hybrid.h (#29) Summary: ## Motivation Why are you making this change? What did you change? How does the code work? Why did you choose this approach? Pull Request resolved: https://github.com/facebookincubator/fbjni/pull/29 Test Plan: How did you test this change? Any change that adds functionality should add a unit test as well. Reviewed By: mhorowitz Differential Revision: D19347378 Pulled By: passy fbshipit-source-id: 4022289d222e507d82ce601239719b899e40867c --- first-party/fbjni/cxx/fbjni/detail/Hybrid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-party/fbjni/cxx/fbjni/detail/Hybrid.h b/first-party/fbjni/cxx/fbjni/detail/Hybrid.h index 638d0d359f2..990e94de96e 100644 --- a/first-party/fbjni/cxx/fbjni/detail/Hybrid.h +++ b/first-party/fbjni/cxx/fbjni/detail/Hybrid.h @@ -319,7 +319,7 @@ inline detail::BaseHybridClass* getHybridDataFromField(const JObject* self, cons template inline T* HybridClass::JavaPart::cthis() const { - detail::BaseHybridClass* result = 0; + detail::BaseHybridClass* result = nullptr; static const auto hybridDataField = detectHybrid(this->getClass()); const bool isHybrid = !hybridDataField; if (isHybrid) {