Fix TdDotNetApi formatting.
GitOrigin-RevId: 303db5c47a39198a2e204ca5db3a0e5a15f0bd9f
This commit is contained in:
parent
1f6f920a7d
commit
2036b828ac
@ -261,7 +261,7 @@ class TlWriterDotNet : public TL_writer {
|
|||||||
if (is_header_) {
|
if (is_header_) {
|
||||||
ss << ";\n";
|
ss << ";\n";
|
||||||
} else {
|
} else {
|
||||||
ss << "{\n return REF_NEW NativeObject(::Telegram::Td::Api::ToUnmanaged(this).release());\n}\n";
|
ss << " {\n return REF_NEW NativeObject(::Telegram::Td::Api::ToUnmanaged(this).release());\n}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ss.str();
|
return ss.str();
|
||||||
@ -345,7 +345,7 @@ class TlWriterDotNet : public TL_writer {
|
|||||||
ss << ";\n";
|
ss << ";\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ss << "{\n"
|
ss << " {\n"
|
||||||
<< " if (!from) {\n"
|
<< " if (!from) {\n"
|
||||||
<< " return nullptr;\n"
|
<< " return nullptr;\n"
|
||||||
<< " }\n"
|
<< " }\n"
|
||||||
@ -374,7 +374,7 @@ class TlWriterDotNet : public TL_writer {
|
|||||||
ss << ";\n";
|
ss << ";\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ss << "{\n"
|
ss << " {\n"
|
||||||
<< " return REF_NEW " << class_name << "(";
|
<< " return REF_NEW " << class_name << "(";
|
||||||
bool is_first = true;
|
bool is_first = true;
|
||||||
for (auto &it : t->args) {
|
for (auto &it : t->args) {
|
||||||
@ -522,7 +522,7 @@ class TlWriterDotNet : public TL_writer {
|
|||||||
ss << ";\n";
|
ss << ";\n";
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
ss << "{\n"
|
ss << " {\n"
|
||||||
<< " if (!from) {\n"
|
<< " if (!from) {\n"
|
||||||
<< " return nullptr;\n"
|
<< " return nullptr;\n"
|
||||||
<< " }\n"
|
<< " }\n"
|
||||||
@ -534,7 +534,7 @@ class TlWriterDotNet : public TL_writer {
|
|||||||
ss << ";\n";
|
ss << ";\n";
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
ss << "{\n";
|
ss << " {\n";
|
||||||
ss << " return DoFromUnmanaged<" << class_name << "^>(from);\n";
|
ss << " return DoFromUnmanaged<" << class_name << "^>(from);\n";
|
||||||
ss << "}\n";
|
ss << "}\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user