diff options
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r-- | cpp/src/slice2swift/Gen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp index 2f3bcdaa541..b01b44cfc21 100644 --- a/cpp/src/slice2swift/Gen.cpp +++ b/cpp/src/slice2swift/Gen.cpp @@ -20,6 +20,7 @@ using namespace Slice; using namespace IceUtilInternal; Gen::Gen(const string& base, const vector<string>& includePaths, const string& dir) : + _out(false), // No break before opening block in Swift _includePaths(includePaths) { _fileBase = base; @@ -804,6 +805,7 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p) const string prx = name + "Prx"; const string prxI = "_" + name + "PrxI"; + out << sp; out << nl << "public protocol " << prx << ": " << (baseClass ? fixIdent(baseClass->name()) : getUnqualified("Ice.ObjectPrx", swiftModule)); out << sb; |