diff options
author | VinÃcius dos Santos Oliveira <vini.ipsmaker@expertisesolutions.com.br> | 2015-01-02 17:11:07 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2015-01-04 17:56:53 -0200 |
commit | 5a2ac0c42f8ada84393b68c9695c1a6e13793547 (patch) | |
tree | 8055733ab39a5c9e0e5f3195208b52b5b79f0d0f | |
parent | f55c756c17b9567a643c7f779c65433f3c6eb9ca (diff) | |
download | efl-5a2ac0c42f8ada84393b68c9695c1a6e13793547.tar.gz |
[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.
-rw-r--r-- | src/bindings/eina_cxx/eina_stringshare.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bindings/eina_cxx/eina_stringshare.hh b/src/bindings/eina_cxx/eina_stringshare.hh index 9c93b78606..e7e2f67a92 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 ) { } |