[eina-cxx] fix: wrong parameter type preventing the use of copy ctor
authorVinícius dos Santos Oliveira <vini.ipsmaker@expertisesolutions.com.br>
Fri, 2 Jan 2015 20:11:07 +0000 (17:11 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Sun, 4 Jan 2015 19:56:53 +0000 (17:56 -0200)
"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

index 9c93b78..e7e2f67 100644 (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 )
   {
   }