summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:31:03 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-07-09 21:31:03 +0100
commita26546bc6b0d21abfcc8efb9c1e67e8e13cfdcdc (patch)
treee6adeb5e78617a0d6453ef38330c990c3779097b /src/bin/eolian_cxx
parent133607936d3bdd3d82a487b9215852157ced774d (diff)
eolian: the entire API is now const correct
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc6
-rw-r--r--src/bin/eolian_cxx/convert_comments.cc2
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh4
-rw-r--r--src/bin/eolian_cxx/type_lookup.hh2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index 1e353eb041..873068dac2 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -198,9 +198,9 @@ convert_eolian_implements(efl::eolian::eo_class& cls, Eolian_Class const& klass)
198 198
199 EINA_LIST_FOREACH(::eolian_class_implements_list_get(&klass), it, impl_desc_) 199 EINA_LIST_FOREACH(::eolian_class_implements_list_get(&klass), it, impl_desc_)
200 { 200 {
201 Eolian_Implement *impl_desc = static_cast<Eolian_Implement*>(impl_desc_); 201 const Eolian_Implement *impl_desc = static_cast<Eolian_Implement*>(impl_desc_);
202 Eolian_Class *impl_class; 202 const Eolian_Class *impl_class;
203 Eolian_Function *impl_func; 203 const Eolian_Function *impl_func;
204 Eolian_Function_Type impl_type; 204 Eolian_Function_Type impl_type;
205 eolian_implement_information_get 205 eolian_implement_information_get
206 (impl_desc, &impl_class, &impl_func, &impl_type); 206 (impl_desc, &impl_class, &impl_func, &impl_type);
diff --git a/src/bin/eolian_cxx/convert_comments.cc b/src/bin/eolian_cxx/convert_comments.cc
index c8bff0e981..51ce698c0e 100644
--- a/src/bin/eolian_cxx/convert_comments.cc
+++ b/src/bin/eolian_cxx/convert_comments.cc
@@ -62,7 +62,7 @@ static std::string
62_comment_return(Eolian_Function const& function, 62_comment_return(Eolian_Function const& function,
63 Eolian_Function_Type rettype) 63 Eolian_Function_Type rettype)
64{ 64{
65 Eolian_Type *rettypet = ::eolian_function_return_type_get(&function, rettype); 65 const Eolian_Type *rettypet = ::eolian_function_return_type_get(&function, rettype);
66 const char *rettypes = NULL; 66 const char *rettypes = NULL;
67 if (rettypet) rettypes = ::eolian_type_c_type_get(rettypet); 67 if (rettypet) rettypes = ::eolian_type_c_type_get(rettypet);
68 std::string doc = ""; 68 std::string doc = "";
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 62a6d2f516..d44b3e5f99 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -27,7 +27,7 @@ method_t const method = {};
27struct ctor_t { static constexpr ::Eolian_Function_Type value = ::EOLIAN_CTOR; }; 27struct ctor_t { static constexpr ::Eolian_Function_Type value = ::EOLIAN_CTOR; };
28ctor_t const ctor = {}; 28ctor_t const ctor = {};
29 29
30inline Eolian_Class* 30inline const Eolian_Class*
31class_from_file(std::string const& file) 31class_from_file(std::string const& file)
32{ 32{
33 return ::eolian_class_find_by_file(file.c_str()); 33 return ::eolian_class_find_by_file(file.c_str());
@@ -57,7 +57,7 @@ class_full_name(Eolian_Class const& klass)
57 return safe_str(::eolian_class_full_name_get(&klass)); 57 return safe_str(::eolian_class_full_name_get(&klass));
58} 58}
59 59
60inline Eolian_Class * 60inline const Eolian_Class *
61class_from_name(std::string const& classname) 61class_from_name(std::string const& classname)
62{ 62{
63 return ::eolian_class_find_by_name(classname.c_str()); 63 return ::eolian_class_find_by_name(classname.c_str());
diff --git a/src/bin/eolian_cxx/type_lookup.hh b/src/bin/eolian_cxx/type_lookup.hh
index 945586c9a0..4ac5057981 100644
--- a/src/bin/eolian_cxx/type_lookup.hh
+++ b/src/bin/eolian_cxx/type_lookup.hh
@@ -20,7 +20,7 @@
20namespace eolian_cxx { 20namespace eolian_cxx {
21 21
22inline std::string 22inline std::string
23type_lookup(Eolian_Type *type) 23type_lookup(const Eolian_Type *type)
24{ 24{
25 if (type == NULL) 25 if (type == NULL)
26 return "void"; 26 return "void";