diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2020-08-22 18:40:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-09-21 15:24:43 +0200 |
commit | fec332602976676e1689a45ed846488f2484c89e (patch) | |
tree | 1062e5da85b72dc85d6065c4bace1fc0e19b4cb7 /idlc | |
parent | 137440e161f0f8631e7e67ba0609680d6686fa94 (diff) |
Fix typo in code
Change-Id: Ib026080d70fb7cf97f7f90079dbb4e1f6d77a05e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101197
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/inc/idlctypes.hxx | 2 | ||||
-rw-r--r-- | idlc/source/errorhandler.cxx | 4 | ||||
-rw-r--r-- | idlc/source/parser.y | 2 | ||||
-rw-r--r-- | idlc/test/parser/attribute.tests | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/idlc/inc/idlctypes.hxx b/idlc/inc/idlctypes.hxx index 639360509968..c7247be6c86d 100644 --- a/idlc/inc/idlctypes.hxx +++ b/idlc/inc/idlctypes.hxx @@ -154,7 +154,7 @@ enum ParseState PS_BoundSeen, // Seen BOUND keyword PS_ConstrainedSeen, // Seen CONSTRAINED keyword PS_TransientSeen, // Seen TRANSIENT keyword - PS_MayBeAmbigiousSeen, // Seen MAYBEAMBIGIOUS keyword + PS_MayBeAmbiguousSeen, // Seen MAYBEAMBIGUOUS keyword PS_MayBeDefaultSeen, // Seen MAYBEDEFAULT keyword PS_RemoveableSeen, // Seen REMOVABLE keyword diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx index 6d2d92ea35e5..1e09bb995302 100644 --- a/idlc/source/errorhandler.cxx +++ b/idlc/source/errorhandler.cxx @@ -293,8 +293,8 @@ static const char* parseStateToMessage(ParseState state) return "Illegal syntax after CONSTRAINED keyword"; case PS_TransientSeen: return "Illegal syntax after TRANSIENT keyword"; - case PS_MayBeAmbigiousSeen: - return "Illegal syntax after MAYBEAMBIGIOUS keyword"; + case PS_MayBeAmbiguousSeen: + return "Illegal syntax after MAYBEAMBIGUOUS keyword"; case PS_MayBeDefaultSeen: return "Illegal syntax after MAYBEDEFAULT keyword"; case PS_RemoveableSeen: diff --git a/idlc/source/parser.y b/idlc/source/parser.y index 1d81492562d5..5238f3b5c879 100644 --- a/idlc/source/parser.y +++ b/idlc/source/parser.y @@ -805,7 +805,7 @@ opt_attrflag : } | IDL_MAYBEAMBIGUOUS { - idlc()->setParseState(PS_MayBeAmbigiousSeen); + idlc()->setParseState(PS_MayBeAmbiguousSeen); $$ = AF_MAYBEAMBIGUOUS; } | IDL_MAYBEDEFAULT diff --git a/idlc/test/parser/attribute.tests b/idlc/test/parser/attribute.tests index 73b9d348501a..dd0b85bde9c5 100644 --- a/idlc/test/parser/attribute.tests +++ b/idlc/test/parser/attribute.tests @@ -182,7 +182,7 @@ interface I1 { EXPECT FAILURE "attribute.tests 21": interface I1 { - [attribute, maybeambigious] long a; + [attribute, maybeambiguous] long a; }; |