From 483b9d73c4397a5c5d4b08fa9d22299ab722e92e Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 17 Oct 2023 23:58:44 +0300 Subject: [PATCH] Remove unneeded (void) for empty parameter list. --- td/generate/tl_writer_dotnet.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/td/generate/tl_writer_dotnet.h b/td/generate/tl_writer_dotnet.h index c0226c4c3..14b8ceb76 100644 --- a/td/generate/tl_writer_dotnet.h +++ b/td/generate/tl_writer_dotnet.h @@ -26,7 +26,7 @@ class TlWriterDotNet final : public TL_writer { : TL_writer(name), is_header_(is_header), prefix_(prefix) { } - int get_max_arity(void) const final { + int get_max_arity() const final { return 0; } @@ -42,7 +42,7 @@ class TlWriterDotNet final : public TL_writer { is_built_in_complex_type(t->name); } - std::vector get_parsers(void) const final { + std::vector get_parsers() const final { return {"FromUnmanaged"}; } int get_parser_type(const tl_combinator *t, const std::string &name) const final { @@ -51,10 +51,10 @@ class TlWriterDotNet final : public TL_writer { Mode get_parser_mode(int type) const final { return All; // Server; } - std::vector get_storers(void) const final { + std::vector get_storers() const final { return {"ToUnmanaged", "ToString"}; } - std::vector get_additional_functions(void) const final { + std::vector get_additional_functions() const final { return {"ToUnmanaged", "FromUnmanaged"}; } int get_storer_type(const tl_combinator *t, const std::string &name) const final { @@ -64,14 +64,14 @@ class TlWriterDotNet final : public TL_writer { return type <= 1 ? All : Server; } - std::string gen_base_tl_class_name(void) const final { + std::string gen_base_tl_class_name() const final { return "BaseObject"; } std::string gen_base_type_class_name(int arity) const final { assert(arity == 0); return "Object"; } - std::string gen_base_function_class_name(void) const final { + std::string gen_base_function_class_name() const final { return "Function"; } @@ -188,7 +188,7 @@ class TlWriterDotNet final : public TL_writer { "namespace Api {\n"; } - std::string gen_output_begin_once(void) const final { + std::string gen_output_begin_once() const final { return std::string(); } @@ -231,7 +231,7 @@ class TlWriterDotNet final : public TL_writer { << " public:\n"; return ss.str(); } - std::string gen_class_end(void) const final { + std::string gen_class_end() const final { return ""; } @@ -413,7 +413,7 @@ class TlWriterDotNet final : public TL_writer { assert(0); return std::string(); } - std::string gen_var_type_name(void) const final { + std::string gen_var_type_name() const final { assert(0); return std::string(); } @@ -504,7 +504,7 @@ class TlWriterDotNet final : public TL_writer { const tl_tree *result) const final { return ""; } - std::string gen_fetch_function_result_end(void) const final { + std::string gen_fetch_function_result_end() const final { return ""; } std::string gen_fetch_function_result_any_begin(const std::string &parser_name, const std::string &class_name, @@ -515,13 +515,13 @@ class TlWriterDotNet final : public TL_writer { return ""; } - std::string gen_fetch_switch_begin(void) const final { + std::string gen_fetch_switch_begin() const final { return ""; } std::string gen_fetch_switch_case(const tl_combinator *t, int arity) const final { return ""; } - std::string gen_fetch_switch_end(void) const final { + std::string gen_fetch_switch_end() const final { return ""; }