diff options
author | Jose <jose@zeroc.com> | 2019-02-28 17:42:11 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-02-28 17:42:11 +0100 |
commit | 03ddcf11370726677332f9c1dfc1b4dc78ef6f5f (patch) | |
tree | 6afff06fa9d3f10244e3dcd618650c7598971280 /cpp/src/slice2swift/SwiftUtil.cpp | |
parent | Fix delegate escaping (diff) | |
download | ice-03ddcf11370726677332f9c1dfc1b4dc78ef6f5f.tar.bz2 ice-03ddcf11370726677332f9c1dfc1b4dc78ef6f5f.tar.xz ice-03ddcf11370726677332f9c1dfc1b4dc78ef6f5f.zip |
Fix to typeToString implementation
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r-- | cpp/src/slice2swift/SwiftUtil.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp index 1b402f4d846..2c66616da49 100644 --- a/cpp/src/slice2swift/SwiftUtil.cpp +++ b/cpp/src/slice2swift/SwiftUtil.cpp @@ -254,7 +254,7 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, return ""; } - string t = "???"; + string t = ""; // // The current module were the type is being used // @@ -292,6 +292,11 @@ SwiftGenerator::typeToString(const TypePtr& type, const ContainedPtr& toplevel, { t = getUnqualified(getAbsoluteImpl(cont), currentModule); } + else + { + assert(false); + t = "???"; + } if(!nonnull && (optional || isNullableType(type))) { |