diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-01 14:06:22 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-01 14:53:10 +0200 |
commit | 22e748e68a87e1b470146eacad374c7dfef74f5a (patch) | |
tree | ac1c35ae78736cea81f8b40e1fe0ccddc672a1b1 /idlc | |
parent | 1aa96d69af7173af7c8e32a47699f574b1091c73 (diff) |
Prefer prefix operator
Change-Id: I82f3f66bfc675dbc4a5d5b57d8715c3de01d9620
Reviewed-on: https://gerrit.libreoffice.org/42994
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/parser.y | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y index af945f67a4c2..1c1a27a67806 100644 --- a/idlc/source/parser.y +++ b/idlc/source/parser.y @@ -1561,7 +1561,7 @@ property : pDecl = (*iter); if ( !pDecl ) { - iter++; + ++iter; continue; } @@ -1569,14 +1569,14 @@ property : if ( !pType ) { - iter++; + ++iter; continue; } pAttr = new AstAttribute(NT_property, $1, pType, pDecl->getName(), pScope); pScope->addDeclaration(pAttr); - iter++; + ++iter; delete pDecl; } } @@ -1641,7 +1641,7 @@ service_export : { ErrorHandler::lookupError(ErrorCode::InterfaceMemberLookup, *iter, scopeAsDecl(pScope)); } - iter++; + ++iter; } } } @@ -1683,7 +1683,7 @@ service_export : { ErrorHandler::lookupError(ErrorCode::ServiceMemberLookup, *iter, scopeAsDecl(pScope)); } - iter++; + ++iter; } } delete $2; @@ -1723,7 +1723,7 @@ service_export : { ErrorHandler::lookupError(ErrorCode::InterfaceMemberLookup, *iter, scopeAsDecl(pScope)); } - iter++; + ++iter; } } } @@ -1764,7 +1764,7 @@ service_export : { ErrorHandler::lookupError(ErrorCode::ServiceMemberLookup, *iter, scopeAsDecl(pScope)); } - iter++; + ++iter; } } } @@ -2042,7 +2042,7 @@ type_declarator : pDecl = (*iter); if ( !pDecl ) { - iter++; + ++iter; continue; } @@ -2050,14 +2050,14 @@ type_declarator : if ( !pType ) { - iter++; + ++iter; continue; } pTypeDef = new AstTypeDef(pType, pDecl->getName(), pScope); pScope->addDeclaration(pTypeDef); - iter++; + ++iter; delete pDecl; } delete pList; @@ -2551,7 +2551,7 @@ member : pDecl = (*iter); if ( !pDecl ) { - iter++; + ++iter; continue; } @@ -2559,7 +2559,7 @@ member : if ( !pType ) { - iter++; + ++iter; continue; } @@ -2571,7 +2571,7 @@ member : } pScope->addDeclaration(pMember); - iter++; + ++iter; delete pDecl; } delete pList; |