mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
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:
parent
5d02b80e9c
commit
06dbb8f011
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user