summaryrefslogtreecommitdiff
path: root/test/sad_test.cc
diff options
context:
space:
mode:
authorclang-format <noreply@google.com>2016-08-04 19:28:34 -0700
committerJames Zern <jzern@google.com>2016-08-05 20:02:28 -0700
commit9c9d92ae3a7c70adff71e04bae14a1e1394693f5 (patch)
treeec34927f5e0511588cccc2920b4641b57f590d99 /test/sad_test.cc
parent57f49db81f43df38421091eff3061ba6f9ecd9b1 (diff)
downloadlibvpx-9c9d92ae3a7c70adff71e04bae14a1e1394693f5.tar
libvpx-9c9d92ae3a7c70adff71e04bae14a1e1394693f5.tar.gz
libvpx-9c9d92ae3a7c70adff71e04bae14a1e1394693f5.tar.bz2
libvpx-9c9d92ae3a7c70adff71e04bae14a1e1394693f5.zip
test: apply clang-tidy google-readability-braces-around-statements
applied against a x86_64 configure with and without --enable-vp9-highbitdepth clang-tidy-3.7.1 \ -checks='-*,google-readability-braces-around-statements' \ -header-filter='.*' -fix + clang-format afterward Change-Id: Ia2993ec64cf1eb3505d3bfb39068d9e44cfbce8d
Diffstat (limited to 'test/sad_test.cc')
-rw-r--r--test/sad_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sad_test.cc b/test/sad_test.cc
index e1f164a4e..837b08fbd 100644
--- a/test/sad_test.cc
+++ b/test/sad_test.cc
@@ -114,9 +114,10 @@ class SADTestBase : public ::testing::TestWithParam<ParamType> {
uint8_t *GetReference(int block_idx) const {
#if CONFIG_VP9_HIGHBITDEPTH
- if (use_high_bit_depth_)
+ if (use_high_bit_depth_) {
return CONVERT_TO_BYTEPTR(CONVERT_TO_SHORTPTR(reference_data_) +
block_idx * kDataBlockSize);
+ }
#endif // CONFIG_VP9_HIGHBITDEPTH
return reference_data_ + block_idx * kDataBlockSize;
}