sw_engine SwShape: Fix coding style

This commit is contained in:
JunsuChoi 2021-12-14 20:29:01 -08:00 committed by Hermet Park
parent c326b6ac3e
commit 791275c30a

View file

@ -297,7 +297,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform)
auto outlineCntrsCnt = 0; auto outlineCntrsCnt = 0;
for (uint32_t i = 0; i < cmdCnt; ++i) { for (uint32_t i = 0; i < cmdCnt; ++i) {
switch(*(cmds + i)) { switch (*(cmds + i)) {
case PathCommand::Close: { case PathCommand::Close: {
++outlinePtsCnt; ++outlinePtsCnt;
break; break;
@ -326,7 +326,7 @@ static SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform)
_growOutlineContour(*dash.outline, outlineCntrsCnt * 20); _growOutlineContour(*dash.outline, outlineCntrsCnt * 20);
while (cmdCnt-- > 0) { while (cmdCnt-- > 0) {
switch(*cmds) { switch (*cmds) {
case PathCommand::Close: { case PathCommand::Close: {
_dashLineTo(dash, &dash.ptStart, transform); _dashLineTo(dash, &dash.ptStart, transform);
break; break;
@ -397,7 +397,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf
auto closeCnt = 0; auto closeCnt = 0;
for (uint32_t i = 0; i < cmdCnt; ++i) { for (uint32_t i = 0; i < cmdCnt; ++i) {
switch(*(cmds + i)) { switch (*(cmds + i)) {
case PathCommand::Close: { case PathCommand::Close: {
++outlinePtsCnt; ++outlinePtsCnt;
++closeCnt; ++closeCnt;
@ -440,7 +440,7 @@ static bool _genOutline(SwShape* shape, const Shape* sdata, const Matrix* transf
//Generate Outlines //Generate Outlines
while (cmdCnt-- > 0) { while (cmdCnt-- > 0) {
switch(*cmds) { switch (*cmds) {
case PathCommand::Close: { case PathCommand::Close: {
_outlineClose(*outline); _outlineClose(*outline);
break; break;