diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-11-05 11:19:42 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-11-05 11:19:42 -0800 |
commit | b459a5558f6db18616833ccb11341a7a89b05349 (patch) | |
tree | ce8c8bfc4ace5a07610fe896b83fb30b44ca4fe3 /cpp/src/Slice/Parser.cpp | |
parent | IceGridGUI login dialog updates (diff) | |
download | ice-b459a5558f6db18616833ccb11341a7a89b05349.tar.bz2 ice-b459a5558f6db18616833ccb11341a7a89b05349.tar.xz ice-b459a5558f6db18616833ccb11341a7a89b05349.zip |
fixing assertion failure with Slice redefinition
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 1a5b0829618..a0855fc7771 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -795,6 +795,7 @@ Slice::Container::createException(const string& name, const ExceptionPtr& base, msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "exception"); // Don't return here -- we create the exception anyway @@ -846,6 +847,7 @@ Slice::Container::createStruct(const string& name, bool local, NodeType nt) msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "structure"); // Don't return here -- we create the struct anyway. @@ -901,6 +903,7 @@ Slice::Container::createSequence(const string& name, const TypePtr& type, const msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "sequence"); // Don't return here -- we create the sequence anyway. @@ -966,6 +969,7 @@ Slice::Container::createDictionary(const string& name, const TypePtr& keyType, c msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "dictionary"); // Don't return here -- we create the dictionary anyway. @@ -1037,6 +1041,7 @@ Slice::Container::createEnum(const string& name, bool local, NodeType nt) msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "enumeration"); // Don't return here -- we create the enumeration anyway. @@ -1110,6 +1115,7 @@ Slice::Container::createConst(const string name, const TypePtr& constType, const msg += matches.front()->kindOf() + " `" + matches.front()->name() + "'"; _unit->error(msg); } + return 0; } nameIsLegal(name, "constant"); // Don't return here -- we create the constant anyway. |