forked from enlightenment/efl
[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.
This commit is contained in:
parent
f55c756c17
commit
5a2ac0c42f
|
@ -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 )
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue