eolian_cxx: pass eo_class by reference instead of by value.
authorSavio Sena <savio@expertisesolutions.com.br>
Fri, 9 May 2014 10:48:49 +0000 (12:48 +0200)
committerCedric Bail <cedric.bail@free.fr>
Fri, 9 May 2014 11:02:43 +0000 (13:02 +0200)
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 <cedric.bail@free.fr>
src/lib/eolian_cxx/eo_generate.hh

index 477f263..6cbbb30 100644 (file)
@@ -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);
 }