diff options
author | Yi Kong <yikong@google.com> | 2018-08-02 14:43:21 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2018-08-02 14:43:21 -0700 |
commit | 4b22b34c698db8aa59343d0a5af89fc737532bce (patch) | |
tree | 985c0e28dcdf5a497737690b50d31c4eb7bbda85 /cmdline/cmdline_parser_test.cc | |
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 'cmdline/cmdline_parser_test.cc')
-rw-r--r-- | cmdline/cmdline_parser_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdline/cmdline_parser_test.cc b/cmdline/cmdline_parser_test.cc index a52e16328a..a33d53741c 100644 --- a/cmdline/cmdline_parser_test.cc +++ b/cmdline/cmdline_parser_test.cc @@ -59,7 +59,7 @@ namespace art { template <typename T> bool UsuallyEquals(const T& expected, const T& actual, typename std::enable_if< - detail::SupportsEqualityOperator<T>::value>::type* = 0) { + detail::SupportsEqualityOperator<T>::value>::type* = nullptr) { return expected == actual; } @@ -73,8 +73,8 @@ namespace art { template <typename T, typename ... Ignore> bool UsuallyEquals(const T& expected, const T& actual, const Ignore& ... more ATTRIBUTE_UNUSED, - typename std::enable_if<std::is_pod<T>::value>::type* = 0, - typename std::enable_if<!detail::SupportsEqualityOperator<T>::value>::type* = 0 + typename std::enable_if<std::is_pod<T>::value>::type* = nullptr, + typename std::enable_if<!detail::SupportsEqualityOperator<T>::value>::type* = nullptr ) { return memcmp(std::addressof(expected), std::addressof(actual), sizeof(T)) == 0; } |