diff options
author | Michi Henning <michi@zeroc.com> | 2005-08-26 06:10:52 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-08-26 06:10:52 +0000 |
commit | 12783398414c748db34c62626d90e3a6735f4055 (patch) | |
tree | ea132363d94a9ed3c0cd3005ea68f2e3bd389151 /cpp/src/slice2vb/Gen.cpp | |
parent | Fixed typo (diff) | |
download | ice-12783398414c748db34c62626d90e3a6735f4055.tar.bz2 ice-12783398414c748db34c62626d90e3a6735f4055.tar.xz ice-12783398414c748db34c62626d90e3a6735f4055.zip |
http://www.zeroc.com/vbulletin/showthread.php?t=1612
Diffstat (limited to 'cpp/src/slice2vb/Gen.cpp')
-rwxr-xr-x | cpp/src/slice2vb/Gen.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/cpp/src/slice2vb/Gen.cpp b/cpp/src/slice2vb/Gen.cpp index c708e055e2f..e805c67b8ed 100755 --- a/cpp/src/slice2vb/Gen.cpp +++ b/cpp/src/slice2vb/Gen.cpp @@ -2343,9 +2343,22 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) _out.zeroIndent(); _out << sp << nl << "#End Region"; // Slice data members - _out << sp << nl << "#Region \"Constructor\""; + bool isClass = p->hasMetaData("vb:class"); + + _out << sp << nl << "#Region \"Constructor"; + if(isClass) + { + _out << "s"; + } + _out << "\""; _out.restoreIndent(); + if(isClass) + { + _out << sp << nl << "Public Sub New()"; + _out << nl << "End Sub"; + } + _out << sp << nl << "Public Sub New" << spar; vector<string> paramDecl; vector<string> paramNames; @@ -2362,7 +2375,6 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) { _out << nl << "Me." << *i << " = " << *i; } - bool isClass = p->hasMetaData("vb:class"); bool patchStruct = !isClass && classMembers.size() != 0; if(!p->isLocal() && patchStruct) { @@ -2372,7 +2384,7 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) _out << nl << "End Sub"; _out.zeroIndent(); - _out << sp << nl << "#End Region"; // Constructor + _out << sp << nl << "#End Region"; // Constructor(s) _out.restoreIndent(); if(isClass) |