Fix compilation error

This commit is contained in:
Andrea Cavalli 2021-12-30 01:34:39 +01:00
parent 5f895e4fbb
commit 71b72b8450
5 changed files with 5 additions and 5 deletions

View File

@ -201,7 +201,7 @@ class TlWriterDotNet final : public TL_writer {
} }
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name,
bool is_proxy) const final { bool is_proxy, const tl::tl_tree *result) const final {
if (!is_header_) { if (!is_header_) {
return ""; return "";
} }

View File

@ -57,7 +57,7 @@ std::string TD_TL_writer_jni_cpp::gen_base_tl_class_name() const {
} }
std::string TD_TL_writer_jni_cpp::gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string TD_TL_writer_jni_cpp::gen_class_begin(const std::string &class_name, const std::string &base_class_name,
bool is_proxy) const { bool is_proxy, const tl::tl_tree *result) const {
return "\n" return "\n"
"jclass " + "jclass " +
class_name + "::Class;\n"; class_name + "::Class;\n";

View File

@ -55,7 +55,7 @@ class TD_TL_writer_jni_cpp final : public TD_TL_writer_cpp {
std::string gen_base_tl_class_name() const final; std::string gen_base_tl_class_name() const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name,
bool is_proxy) const final; bool is_proxy, const tl::tl_tree *result) const final;
std::string gen_field_definition(const std::string &class_name, const std::string &type_name, std::string gen_field_definition(const std::string &class_name, const std::string &type_name,
const std::string &field_name) const final; const std::string &field_name) const final;

View File

@ -126,7 +126,7 @@ std::string TD_TL_writer_jni_h::gen_output_begin() const {
} }
std::string TD_TL_writer_jni_h::gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string TD_TL_writer_jni_h::gen_class_begin(const std::string &class_name, const std::string &base_class_name,
bool is_proxy) const { bool is_proxy, const tl::tl_tree *result) const {
if (class_name == gen_base_tl_class_name()) { if (class_name == gen_base_tl_class_name()) {
return "class " + class_name + return "class " + class_name +
" {\n" " {\n"

View File

@ -35,7 +35,7 @@ class TD_TL_writer_jni_h final : public TD_TL_writer_h {
std::string gen_output_begin() const final; std::string gen_output_begin() const final;
std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name, std::string gen_class_begin(const std::string &class_name, const std::string &base_class_name,
bool is_proxy) const final; bool is_proxy, const tl::tl_tree *result) const final;
std::string gen_field_definition(const std::string &class_name, const std::string &type_name, std::string gen_field_definition(const std::string &class_name, const std::string &type_name,
const std::string &field_name) const final; const std::string &field_name) const final;