[poppler] Annots & ownership of its objects

Carlos Garcia Campos carlosgc at gnome.org
Wed Jul 1 02:56:56 PDT 2009


El lun, 29-06-2009 a las 19:21 +0200, Pino Toscano escribió:
> Alle lunedì 29 giugno 2009, Carlos Garcia Campos ha scritto:
> > El lun, 29-06-2009 a las 01:45 +0200, Pino Toscano escribió:
> > > Hi,
> > >
> > > currently, an Annots object owns the various Annot* objects thus, if you
> > > want to keep them, you have to keep the "parent" Annots object around as
> > > well. My goal is to have each Annot object stored in each "wrapper"
> > > Annotation object of the Qt4 frontend, but without the need to tie them
> > > to a Page object. The less "destructive" solution I have so far is a
> > > takeAnnot() method (see attached patch) which would get an Annot object
> > > and give its ownership to the callee.
> >
> > What about adding reference counting?
> 
> I'm not sure it worth to refactor all the annotation code snippets to add 
> refcounting, which would be used in this particular case only (at least, there 
> were not any other use cases for it so far).

Well, ok, it's ok to me then. 

> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler


-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
 digitalmente
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090701/3c0c3bd2/attachment.pgp 


More information about the poppler mailing list