[Libreoffice-commits] core.git: idlc/source

Peter Foley pefoley2 at verizon.net
Sun Apr 7 07:00:24 PDT 2013


 idlc/source/parser.y |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84068dae548d8498bf63f5fe2273a44b9fc638bb
Author: Peter Foley <pefoley2 at verizon.net>
Date:   Sun Apr 7 09:42:18 2013 -0400

    fix logical-op-parenthesis warning
    
    Change-Id: Ib97f667c9acb644c3becb81f851ad8c7e4ff31ea

diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index e338e57..528bc96 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -1707,7 +1707,7 @@ service_export :
 				pDecl = pScope->lookupByName(*iter);
 				if ( pDecl && (pDecl->getNodeType() == NT_service) )
 				{
-					if ( static_cast< AstService * >(pDecl)->isSingleInterfaceBasedService() || pScope->getScopeNodeType() == NT_singleton && pScope->nMembers() > 0 )
+					if ( static_cast< AstService * >(pDecl)->isSingleInterfaceBasedService() || (pScope->getScopeNodeType() == NT_singleton && pScope->nMembers() > 0) )
 						idlc()->error()->error0(EIDL_ILLEGAL_ADD);										
                     else if ( idlc()->error()->checkPublished(pDecl) )
                     {


More information about the Libreoffice-commits mailing list