summaryrefslogtreecommitdiff
path: root/test/dct_partial_test.cc
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2020-07-23 16:46:01 -0700
committerJerome Jiang <jianj@google.com>2020-07-27 11:51:04 -0700
commitb358f9076f153835680cd3af3765c7e30474c030 (patch)
treed9433e7732599d1ac0e868c317a299f4e28b51f8 /test/dct_partial_test.cc
parentdbe00bb68b8a67beed66aae866b90296ed311412 (diff)
downloadlibvpx-b358f9076f153835680cd3af3765c7e30474c030.tar
libvpx-b358f9076f153835680cd3af3765c7e30474c030.tar.gz
libvpx-b358f9076f153835680cd3af3765c7e30474c030.tar.bz2
libvpx-b358f9076f153835680cd3af3765c7e30474c030.zip
NULL -> nullptr in CPP files
This should clean up clangtidy warnings Change-Id: Ifb5a986121b2d0bd71b9ad39a79dd46c63bdb998
Diffstat (limited to 'test/dct_partial_test.cc')
-rw-r--r--test/dct_partial_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dct_partial_test.cc b/test/dct_partial_test.cc
index 2fd176f25..8d0e3a912 100644
--- a/test/dct_partial_test.cc
+++ b/test/dct_partial_test.cc
@@ -39,7 +39,7 @@ typedef tuple<PartialFdctFunc, int /* size */, vpx_bit_depth_t>
tran_low_t partial_fdct_ref(const Buffer<int16_t> &in, int size) {
int64_t sum = 0;
- if (in.TopLeftPixel() != NULL) {
+ if (in.TopLeftPixel() != nullptr) {
for (int y = 0; y < size; ++y) {
for (int x = 0; x < size; ++x) {
sum += in.TopLeftPixel()[y * in.stride() + x];
@@ -81,7 +81,7 @@ class PartialFdctTest : public ::testing::TestWithParam<PartialFdctParam> {
Buffer<tran_low_t> output_block = Buffer<tran_low_t>(size_, size_, 0, 16);
ASSERT_TRUE(output_block.Init());
- if (output_block.TopLeftPixel() != NULL) {
+ if (output_block.TopLeftPixel() != nullptr) {
for (int i = 0; i < 100; ++i) {
if (i == 0) {
input_block.Set(maxvalue);