Skip to content

Commit

Permalink
use nullptr in Hybrid.h (facebook#29)
Browse files Browse the repository at this point in the history
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: facebookincubator/fbjni#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
  • Loading branch information
gengjiawen authored and facebook-github-bot committed Jan 14, 2020
1 parent 735b6b2 commit 6a2be9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion first-party/fbjni/cxx/fbjni/detail/Hybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ inline detail::BaseHybridClass* getHybridDataFromField(const JObject* self, cons

template <typename T, typename B>
inline T* HybridClass<T, B>::JavaPart::cthis() const {
detail::BaseHybridClass* result = 0;
detail::BaseHybridClass* result = nullptr;
static const auto hybridDataField = detectHybrid<T, B>(this->getClass());
const bool isHybrid = !hybridDataField;
if (isHybrid) {
Expand Down

0 comments on commit 6a2be9a

Please sign in to comment.