aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleAll.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-10-17 17:33:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-17 22:02:41 +0000
commit1a1d2411e879cffb74994f1978f58d503435c874 (patch)
tree3e06421c0170bee888036bae3bd23d7c4c3d02b8 /samplecode/SampleAll.cpp
parent53418dbb6af270d146890ec1904ce4b9c71e1eda (diff)
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 <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r--samplecode/SampleAll.cpp4
1 files changed, 2 insertions, 2 deletions
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<SkPoint>(pos);
+ SkTDArray<SkPoint> pos;
pos.setCount(asciiLength);
for (index = 0; index < asciiLength; index++)
pos[index].set(SkIntToScalar((unsigned int)index * 10),
SkIntToScalar((unsigned int)index * 2));
- SkTDArray<SkPoint>(pos2);
+ SkTDArray<SkPoint> pos2;
pos2.setCount(asciiLength);
for (index = 0; index < asciiLength; index++)
pos2[index].set(SkIntToScalar((unsigned int)index * 10),