summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-11 13:50:09 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-11 13:50:09 +0000
commita856966cf480e2751b742f8c65a81e197d28201e (patch)
treea70cbd8081c9fa036adb342425162f793863d6aa /idlc
parent0ec8ab8e907aa151872c6a22d6015a816ea1591b (diff)
INTEGRATION: CWS jsc21 (1.17.38); FILE MERGED
2008/04/23 09:53:08 jsc 1.17.38.2: RESYNC: (1.17-1.18); FILE MERGED 2008/02/13 14:46:26 jsc 1.17.38.1: #i69326# optional interfaces are now allowed at published serices
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/parser.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index 0055be90f089..09754522fcde 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: parser.y,v $
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
* This file is part of OpenOffice.org.
*
@@ -1742,7 +1742,11 @@ service_export :
pDecl = pScope->lookupByName(*iter);
if ( pDecl && (pDecl->getNodeType() == NT_interface) )
{
- if ( idlc()->error()->checkPublished(pDecl) )
+ /* we relax the strict published check and allow to add new
+ * interfaces if they are optional
+ */
+ bool bOptional = (($1 & AF_OPTIONAL) == AF_OPTIONAL);
+ if ( idlc()->error()->checkPublished(pDecl, bOptional) )
{
pIMember = new AstInterfaceMember(
$1, (AstInterface*)pDecl, *iter, pScope);