From: Savio Sena Date: Fri, 9 May 2014 10:48:49 +0000 (+0200) Subject: eolian_cxx: pass eo_class by reference instead of by value. X-Git-Tag: v1.10.0-beta2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4f16cb2c50cf9bc975212de7c3bff6794e7c548;p=platform%2Fupstream%2Fefl.git eolian_cxx: pass eo_class by reference instead of by value. Summary: This patch gets rid of a "defect" pointed out by Coverty Scan -- as per jackdanielz request. CID 1211985. Reviewers: cedric, smohanty, JackDanielZ CC: felipealmeida, cedric Differential Revision: https://phab.enlightenment.org/D840 Signed-off-by: Cedric Bail --- diff --git a/src/lib/eolian_cxx/eo_generate.hh b/src/lib/eolian_cxx/eo_generate.hh index 477f263..6cbbb30 100644 --- a/src/lib/eolian_cxx/eo_generate.hh +++ b/src/lib/eolian_cxx/eo_generate.hh @@ -10,7 +10,7 @@ namespace efl { namespace eolian { inline void -generate(std::ostream& out, eo_class cls, eo_generator_options const& opts) +generate(std::ostream& out, eo_class const& cls, eo_generator_options const& opts) { grammar::eo_header_generator(out, cls, opts); }