From 1a1d2411e879cffb74994f1978f58d503435c874 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 17 Oct 2017 17:33:44 -0400 Subject: Remove redundant parentheses. Recent clang versions produce output like ../../samplecode/SampleAll.cpp:306:27: error: redundant parentheses surrounding declarator [-Werror,-Wredundant-parens] Remove these to clean up the code a bit. Change-Id: Ib099201f23f83cd712487c238b6a508290e667a7 Reviewed-on: https://skia-review.googlesource.com/60822 Commit-Queue: Ben Wagner Commit-Queue: Mike Klein Reviewed-by: Mike Klein --- samplecode/SampleAll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samplecode/SampleAll.cpp') diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index f3d1083cb1..e1b85934b1 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -303,12 +303,12 @@ protected: short utf16simple[] = {'u', 't', 'f', '1', '6', '!' }; makePath(path); - SkTDArray(pos); + SkTDArray pos; pos.setCount(asciiLength); for (index = 0; index < asciiLength; index++) pos[index].set(SkIntToScalar((unsigned int)index * 10), SkIntToScalar((unsigned int)index * 2)); - SkTDArray(pos2); + SkTDArray pos2; pos2.setCount(asciiLength); for (index = 0; index < asciiLength; index++) pos2[index].set(SkIntToScalar((unsigned int)index * 10), -- cgit v1.2.3