summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/struct_definition.hh
diff options
context:
space:
mode:
authorBruno da Silva Belo <bruno.belo@expertisesolutions.com.br>2019-11-20 16:57:14 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-20 17:47:44 -0300
commit6772a78d0238ee5fbc04126e9de26c4201e3ef57 (patch)
tree25f5385b518b710f6165cc89bc0f01c5f89e8621 /src/bin/eolian_mono/eolian/mono/struct_definition.hh
parent9f67ad59b0cf52fb2fe949c22c366229b4a64409 (diff)
csharp: Specifying StringComparison.
Summary: ref T8405 Reviewers: lauromoura, felipealmeida, YOhoho, segfaultxavi Reviewed By: lauromoura Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8405 Differential Revision: https://phab.enlightenment.org/D10650
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/struct_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 7c0bc9e4e1..973eb27149 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -485,6 +485,7 @@ struct struct_definition_generator
485 indent << scope_tab << "/// <summary>Get a hash code for this item.\n" 485 indent << scope_tab << "/// <summary>Get a hash code for this item.\n"
486 << since_line 486 << since_line
487 << indent << scope_tab << "/// </summary>\n" 487 << indent << scope_tab << "/// </summary>\n"
488 << "#pragma warning disable CA1307\n"
488 << indent << scope_tab << "public override int GetHashCode()\n" 489 << indent << scope_tab << "public override int GetHashCode()\n"
489 << indent << scope_tab << "{\n" 490 << indent << scope_tab << "{\n"
490 ).generate(sink, attributes::unused, context)) 491 ).generate(sink, attributes::unused, context))
@@ -515,6 +516,7 @@ struct struct_definition_generator
515 516
516 if (!as_generator( 517 if (!as_generator(
517 indent << scope_tab << "}\n" 518 indent << scope_tab << "}\n"
519 << "#pragma warning restore CA1307\n\n"
518 ).generate(sink, attributes::unused, context)) 520 ).generate(sink, attributes::unused, context))
519 return false; 521 return false;
520 522