diff options
| author | 2018-08-02 14:43:21 -0700 | |
|---|---|---|
| committer | 2018-08-02 14:43:21 -0700 | |
| commit | 4b22b34c698db8aa59343d0a5af89fc737532bce (patch) | |
| tree | 985c0e28dcdf5a497737690b50d31c4eb7bbda85 /libartbase/base/bit_struct_detail.h | |
| parent | 9e53f5f19167848d043f91e6d20436e9b568b55a (diff) | |
Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: Id869744db54b5b366454a5e13b467ac1f4df2845
Diffstat (limited to 'libartbase/base/bit_struct_detail.h')
| -rw-r--r-- | libartbase/base/bit_struct_detail.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libartbase/base/bit_struct_detail.h b/libartbase/base/bit_struct_detail.h index 68c2e4461f..60de1b68ef 100644 --- a/libartbase/base/bit_struct_detail.h +++ b/libartbase/base/bit_struct_detail.h @@ -85,7 +85,7 @@ struct HasUnderscoreField { static constexpr FalseT Test(...); public: - static constexpr bool value = decltype(Test<T>(0))::value; + static constexpr bool value = decltype(Test<T>(nullptr))::value; }; // Infer the type of the member of &T::M. |