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>
This commit is contained in:
Ben Wagner 2017-10-17 17:33:44 -04:00 committed by Skia Commit-Bot
parent 53418dbb6a
commit 1a1d2411e8
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ SkScalar strokeWidths[] = {
10,
0
};
SkPath ((*paths[])(SkScalar, SkScalar, SkScalar)) = {
SkPath (*paths[])(SkScalar, SkScalar, SkScalar) = {
generate_square,
generate_rect_line,
generate_circle,

View File

@ -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),