forked from enlightenment/efl
cxx: Avoid pedantic warning with -Wold-style-cast
This affects the generated headers.
This commit is contained in:
parent
03af836332
commit
b4e3d4d8a4
|
@ -64,10 +64,11 @@ struct base_class_definition_generator
|
|||
return false;
|
||||
if(!as_generator(";\n" << scope_tab << "}\n").generate(sink, attributes::unused, context)) return false;
|
||||
|
||||
if(!as_generator
|
||||
(
|
||||
scope_tab << "Eo* _eo_ptr() const { return *(Eo**)this; }\n"
|
||||
).generate(sink, attributes::unused, context)) return false;
|
||||
if(!as_generator(
|
||||
scope_tab << "Eo* _eo_ptr() const { return *(reinterpret_cast<Eo **>"
|
||||
<< "(const_cast<" << string << " *>(this))); }\n"
|
||||
).generate(sink, cls.cxx_name, context))
|
||||
return false;
|
||||
|
||||
// operator ::ns::Class_Name() const;
|
||||
// operator ::ns::Class_Name&();
|
||||
|
|
|
@ -128,10 +128,11 @@ struct class_definition_generator
|
|||
return false;
|
||||
if(!as_generator(";\n" << scope_tab << "}\n").generate(sink, attributes::unused, context)) return false;
|
||||
|
||||
if(!as_generator
|
||||
(
|
||||
scope_tab << "Eo* _eo_ptr() const { return *(Eo**)this; }\n"
|
||||
).generate(sink, attributes::unused, context)) return false;
|
||||
if(!as_generator(
|
||||
scope_tab << "Eo* _eo_ptr() const { return *(reinterpret_cast<Eo **>"
|
||||
<< "(const_cast<" << string << " *>(this))); }\n"
|
||||
).generate(sink, cls.cxx_name, context))
|
||||
return false;
|
||||
|
||||
for (auto&& e : cls.events)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue