Yes. It works. I saw that used in all gtk calls by using g_strdup. But I
would like to prevent duplication.

Why assigning it is not allowed?

On Sat, Nov 20, 2010 at 8:12 PM, Antonio Gomes <[email protected]> wrote:

> what happens if you do:
>
> >     String trial("trial");
> >     single = trial.utf8().data();
>
> single = strdup(trial.utf8().data())
>
> >     std:: cout << "trial is " << trial.utf8().data() << std::endl;
> >     std:: cout << "single is " << single << std::endl;
>
> free(single);
>
> ?
>
> --Antonio
>
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to