diff options
author | Jose <jose@zeroc.com> | 2019-03-13 16:08:59 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-03-13 16:08:59 +0100 |
commit | 069af6844420181a31518cf04b739f9590409535 (patch) | |
tree | f01b46ee5fb8b516a5b37b0482df91bc9e0a01ce /cpp/src/slice2swift/Gen.cpp | |
parent | Stream test updates (diff) | |
download | ice-069af6844420181a31518cf04b739f9590409535.tar.bz2 ice-069af6844420181a31518cf04b739f9590409535.tar.xz ice-069af6844420181a31518cf04b739f9590409535.zip |
Fix Sequence/Dictionary helper names
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index 1736aefbf87..5f3959e61f5 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -525,7 +525,7 @@ Gen::TypesVisitor::visitSequence(const SequencePtr& p) const string optionalFormat = getUnqualified(getOptionalFormat(p->type()), swiftModule); out << sp; - out << nl << "public struct _" << name << "Helper"; + out << nl << "public struct " << name << "Helper"; out << sb; out << nl << "public static func read(from istr: " << istr << ") throws -> " << name; @@ -622,7 +622,7 @@ Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p) const int minWireSize = p->keyType()->minWireSize() + p->valueType()->minWireSize(); out << sp; - out << nl << "public struct _" << name << "Helper"; + out << nl << "public struct " << name << "Helper"; out << sb; out << nl << "public static func read(from istr: " << istr << ") throws -> " << name; |