[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:
Vinícius dos Santos Oliveira 2015-01-02 17:11:07 -03:00 committed by Felipe Magno de Almeida
parent f55c756c17
commit 5a2ac0c42f
1 changed files with 2 additions and 2 deletions

View File

@ -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 )
{
}