summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2023-04-14 00:25:15 +0200
committerJens Geyer <Jens-G@users.noreply.github.com>2023-04-20 18:20:52 +0200
commit2891e4a7dc216a548008f4a8fceb1c6e2fe6f84d (patch)
treec44889a6946f30be18e68f79a45f68fa88d0b499
parent6fefbf437c7392aa3a1be4eb1b32fb0e7ecb95db (diff)
downloadthrift-2891e4a7dc216a548008f4a8fceb1c6e2fe6f84d.tar.gz
THRIFT-5704 Superfluous block scope in generated write() code
Client: hx Patch: Jens Geyer
-rw-r--r--compiler/cpp/src/thrift/generate/t_haxe_generator.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
index 9397ff15f..ee65591b0 100644
--- a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
@@ -2521,7 +2521,6 @@ void t_haxe_generator::generate_serialize_struct(ostream& out, t_struct* tstruct
* @param prefix String prefix for fields
*/
void t_haxe_generator::generate_serialize_container(ostream& out, t_type* ttype, string prefix) {
- scope_up(out);
if (ttype->is_map()) {
string iter = tmp("_key");
@@ -2572,7 +2571,6 @@ void t_haxe_generator::generate_serialize_container(ostream& out, t_type* ttype,
indent(out) << "oprot.writeListEnd();" << endl;
}
- scope_down(out);
}
/**