summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-03-15 14:37:24 -0400
committerJoe George <joe@zeroc.com>2019-03-15 14:46:40 -0400
commitdaaf57c31b59aa6cafa8e69350e948ca49b5b108 (patch)
treecf11d2d1c35ccd26c51494a884d7c937fd977f09 /cpp/src/slice2swift/Gen.cpp
parentSwift Proxy fixes & updates (diff)
downloadice-daaf57c31b59aa6cafa8e69350e948ca49b5b108.tar.bz2
ice-daaf57c31b59aa6cafa8e69350e948ca49b5b108.tar.xz
ice-daaf57c31b59aa6cafa8e69350e948ca49b5b108.zip
Add breakBeforeBlock option to IceUtilInternal::Output
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp2
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;