summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-12-20 15:50:18 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-12-20 16:06:58 -0300
commitb92acd5cafe374adb2aa6fcd8ed6e4a38a843ff4 (patch)
tree3ce4d77c4418b533d74adf4b51ddbccf16d3a01d /src/lib/eolian_cxx
parentae822a396ce253d563ecbaf4965cc22c6894b764 (diff)
eolian-cxx: Make class_definition lambda's catch parameter by const-reference
CID 1361230 CID 1361234
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/class_definition.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/class_definition.hpp b/src/lib/eolian_cxx/grammar/class_definition.hpp
index 9442e06813..0b26d7c78c 100644
--- a/src/lib/eolian_cxx/grammar/class_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/class_definition.hpp
@@ -136,8 +136,8 @@ struct class_definition_generator
136 << scope_tab << scope_tab << "static Efl_Event_Description const* description()\n" 136 << scope_tab << scope_tab << "static Efl_Event_Description const* description()\n"
137 << scope_tab << scope_tab << "{ return " << string << "; }\n" 137 << scope_tab << scope_tab << "{ return " << string << "; }\n"
138 << scope_tab << scope_tab << "typedef " 138 << scope_tab << scope_tab << "typedef "
139 << (attribute_conditional([] (eina::optional<attributes::type_def> t) { return !!t; }) 139 << (attribute_conditional([] (eina::optional<attributes::type_def> const& t) { return !!t; })
140 [attribute_replace([] (eina::optional<attributes::type_def> t) { return *t; }) [type]] 140 [attribute_replace([] (eina::optional<attributes::type_def> const& t) { return *t; }) [type]]
141 | "void") 141 | "void")
142 << " parameter_type;\n" 142 << " parameter_type;\n"
143 << scope_tab << "} const " << string_replace(',', '_') << "_event;\n" 143 << scope_tab << "} const " << string_replace(',', '_') << "_event;\n"