summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/qualifier_def.hpp
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-07 00:57:05 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-07 00:57:14 +0200
commitf6747d68225aa066e1cb088eb75ed851cdc44e91 (patch)
treec11b9f39e9224988142459ac66715110f4498ab8 /src/lib/eolian_cxx/grammar/qualifier_def.hpp
parentacd9eb2466782661a17750c95507b698b39d9cfe (diff)
eolian_cxx: Remove last usage of type_is_owned
Reviewers: q66, felipealmeida Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9866
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/qualifier_def.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/qualifier_def.hpp b/src/lib/eolian_cxx/grammar/qualifier_def.hpp
index 33e3ed5125..cab3ca8667 100644
--- a/src/lib/eolian_cxx/grammar/qualifier_def.hpp
+++ b/src/lib/eolian_cxx/grammar/qualifier_def.hpp
@@ -72,9 +72,9 @@ inline qualifier_bool operator^(qualifier_bool lhs, qualifier_info rhs)
72 return lhs; 72 return lhs;
73} 73}
74 74
75inline qualifier_info qualifiers(Eolian_Type const* type) 75inline qualifier_info qualifiers(Eolian_Type const* type, bool is_moved)
76{ 76{
77 qualifier_info is_own = ::eolian_type_is_owned(type) ? qualifier_info::is_own : qualifier_info::is_none; 77 qualifier_info is_own = is_moved ? qualifier_info::is_own : qualifier_info::is_none;
78 qualifier_info is_const = ::eolian_type_is_const(type) ? qualifier_info::is_const : qualifier_info::is_none; 78 qualifier_info is_const = ::eolian_type_is_const(type) ? qualifier_info::is_const : qualifier_info::is_none;
79 qualifier_info is_ref = ::eolian_type_is_ptr(type) ? qualifier_info::is_ref : qualifier_info::is_none; 79 qualifier_info is_ref = ::eolian_type_is_ptr(type) ? qualifier_info::is_ref : qualifier_info::is_none;
80 return is_own | is_const | is_ref; 80 return is_own | is_const | is_ref;