Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl

Issue 1755003002: Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
index 8b206153754327fbae996005d1813a4ef87ad13e..de7469c846da597aaf4f953b18b9f08e553ce4e7 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
@@ -183,7 +183,7 @@ void {{proxy_name}}::{{method.name}}(
bool ok = receiver_->Accept(builder.message());
// This return value may be ignored as !ok implies the Connector has
// encountered an error, which will be visible through other means.
- MOJO_ALLOW_UNUSED_LOCAL(ok);
+ ALLOW_UNUSED_LOCAL(ok);
{%- endif %}
}
{%- endfor %}
@@ -242,7 +242,7 @@ void {{class_name}}_{{method.name}}_ProxyToResponder::Run(
{{build_message(response_params_struct, "in_%s", params_description,
"&serialization_context_")}}
bool ok = responder_->Accept(builder.message());
- MOJO_ALLOW_UNUSED_LOCAL(ok);
+ ALLOW_UNUSED_LOCAL(ok);
// TODO(darin): !ok returned here indicates a malformed message, and that may
// be good reason to close the connection. However, we don't have a way to do
// that from here. We should add a way.
« no previous file with comments | « mojo/public/cpp/utility/thread.h ('k') | mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698