diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-19 12:46:28 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-04-19 12:46:28 +0000 |
commit | 57492802b23349478ab3a7c68b108617a9e4f311 (patch) | |
tree | 7a1d3bb02bfabcbbdfe30030916b521ffbdb30cc /idlc/source/parser.y | |
parent | 0701a34676fd904d91365a21bd142c697095a2dd (diff) |
INTEGRATION: CWS sb49 (1.13.2); FILE MERGED
2006/03/15 16:21:32 sb 1.13.2.1: #i62098# Added check that no two service ctors have the same signature; along the way, added some helper functions and some missing const qualifiers.
Diffstat (limited to 'idlc/source/parser.y')
-rw-r--r-- | idlc/source/parser.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y index a264eb81537d..8a7d8cb6e8a5 100644 --- a/idlc/source/parser.y +++ b/idlc/source/parser.y @@ -4,9 +4,9 @@ * * $RCSfile: parser.y,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2006-03-09 10:48:53 $ + * last change: $Author: hr $ $Date: 2006-04-19 13:46:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2024,6 +2024,11 @@ constructor: $6); delete $6; idlc()->scopes()->pop(); + if (static_cast< AstService * >(idlc()->scopes()->top())-> + checkLastConstructor()) + { + idlc()->error()->error0(EIDL_SIMILAR_CONSTRUCTORS); + } } ';' ; |