From 679bbc5cab393d7ca26c2c70ed0920dcaf7c5c89 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Wed, 18 Jan 2017 23:06:51 -0200 Subject: [PATCH] eolian-cxx: Do not call eolian_function_scope_get with EOLIAN_PROPERTY --- src/lib/eolian_cxx/grammar/klass_def.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp index c663f28..b27c574 100644 --- a/src/lib/eolian_cxx/grammar/klass_def.hpp +++ b/src/lib/eolian_cxx/grammar/klass_def.hpp @@ -638,12 +638,12 @@ struct klass_def { try { if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_GET) - && ::eolian_function_scope_get(function, type) != EOLIAN_SCOPE_PRIVATE) + && ::eolian_function_scope_get(function, EOLIAN_PROP_GET) != EOLIAN_SCOPE_PRIVATE) functions.push_back({function, EOLIAN_PROP_GET}); } catch(std::exception const&) {} try { if(! ::eolian_function_is_legacy_only(function, EOLIAN_PROP_SET) - && ::eolian_function_scope_get(function, type) != EOLIAN_SCOPE_PRIVATE) + && ::eolian_function_scope_get(function, EOLIAN_PROP_SET) != EOLIAN_SCOPE_PRIVATE) functions.push_back({function, EOLIAN_PROP_SET}); } catch(std::exception const&) {} } -- 2.7.4