felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5a2ac0c42f8ada84393b68c9695c1a6e13793547
commit 5a2ac0c42f8ada84393b68c9695c1a6e13793547 Author: Vinícius dos Santos Oliveira <vini.ipsma...@expertisesolutions.com.br> Date: Fri Jan 2 17:11:07 2015 -0300 [eina-cxx] fix: wrong parameter type preventing the use of copy ctor "Eina_Stringshare *" type is interchangeable with "const char *". The "stealing" constructor from efl::eina::stringshare was incorrectly using "char *" instead "const char *", preventing it from being used. --- src/bindings/eina_cxx/eina_stringshare.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/eina_cxx/eina_stringshare.hh b/src/bindings/eina_cxx/eina_stringshare.hh index 9c93b78..e7e2f67 100644 --- a/src/bindings/eina_cxx/eina_stringshare.hh +++ b/src/bindings/eina_cxx/eina_stringshare.hh @@ -90,7 +90,7 @@ struct stringshare * shared this constructor simple increment its reference counter and * wraps the shared pointer. * - * @see stringshare(char* str, steal_stringshare_ref_t) + * @see stringshare(const char* str, steal_stringshare_ref_t) */ stringshare(const char* str) : _string( ::eina_stringshare_add(str) ) @@ -118,7 +118,7 @@ struct stringshare * * @see stringshare(const char* str) */ - stringshare(char* str, steal_stringshare_ref_t) + stringshare(const char* str, steal_stringshare_ref_t) : _string( str ) { } --