[Webkit-unassigned] [Bug 96201] [EFL][WK2] WKEinaSharedString needs a function to adopt eina stringshare.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 10 01:20:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=96201





--- Comment #10 from Mikhail Pozdnyakov <mikhail.pozdnyakov at intel.com>  2012-09-10 01:21:11 PST ---
(In reply to comment #9)
> (In reply to comment #8)
> > (From update of attachment 163001 [details] [details])
> > At first WKEinaSharedString class contains already WKEinaSharedString(WKAdoptTag, WKStringRef); so there is no need to inject friend functions 
> > and private constructors, you can follow existing pattern.
> This patch is come from the patch 95672 for some requirement that handles eina stringhshare data that run_javascript_prompt() callback returns.
> (I think that the callback cannot return WKStringRef because it is the smart class member function)
> In the application side, eina stringshare will be returned by the callback.
> For preventing memory leak, adopt function for eina stringshare is needed.
> 
I just meant that it should be just (one more) adopt constructor and not adopt function.

> > Secondly, WKAdoptTag is quite OK to use here IMHO, and it will look much more readable than just 'bool'.
> Is it ok to use WKAdoptTag (adoptWK) for eina_stringshare even if it is not a WK api object?

I think yes, unless we want to introduce our own tag, I would use existing
one..

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list