summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 2b7ea158304..8a5c5dd5873 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -2474,6 +2474,14 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
H << nl << "public:" << sp;
H.inc();
+
+ if(!p->isLocal())
+ {
+ H << nl << "typedef " << name << "Prx ProxyType;";
+ }
+ H << nl << "typedef " << name << "Ptr PointerType;";
+ H << nl;
+
vector<string> params;
vector<string> allTypes;
vector<string> allParamDecls;