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:
parent
53418dbb6a
commit
1a1d2411e8
@ -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,
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user