THRIFT-2211:Exception constructor does not contain namespace prefix

Client: cocoa
Patch: Jan Brauer

Prefixed cocoa exceptions with set namespace.
This commit is contained in:
Jake Farrell 2014-01-07 22:29:50 -05:00
parent 5d02b80e9c
commit 06dbb8f011

View File

@ -733,7 +733,7 @@ void t_cocoa_generator::generate_cocoa_struct_implementation(ofstream &out,
if (is_exception) {
out << indent() << "- (id) init" << endl;
scope_up(out);
out << indent() << "return [super initWithName: @\"" << tstruct->get_name() <<
out << indent() << "return [super initWithName: @\"" << cocoa_prefix_ << tstruct->get_name() <<
"\" reason: @\"unknown\" userInfo: nil];" << endl;
scope_down(out);
out << endl;
@ -1175,7 +1175,7 @@ void t_cocoa_generator::generate_cocoa_struct_description(ofstream& out,
out <<
indent() << "NSMutableString * ms = [NSMutableString stringWithString: @\"" <<
tstruct->get_name() << "(\"];" << endl;
cocoa_prefix_ << tstruct->get_name() << "(\"];" << endl;
const vector<t_field*>& fields = tstruct->get_members();
vector<t_field*>::const_iterator f_iter;