Re: [PATCH] Setting variables in PD_DocumentRDF

From: vincent <vincent.abiword_at_gmail.com>
Date: Mon Apr 16 2012 - 03:07:08 CEST

I build the patch from Windows side. It is working too,

Thanks,
Vincent

On 4/15/12 7:20 PM, "Ingo Brückl" <ib@wupperonline.de> wrote:

> Hubert Figuière wrote on Sat, 14 Apr 2012 20:32:51 -0700:
>
>> On 14/04/12 12:48 PM, Ingo Brückl wrote:
>>> Yes, but things are more complicated here (due to sloppy programming).
>>> These static variables are used in PD_DocumentRDF class member functions
>>> as well as in ordinary global (non-member) functions (although only with
>>> file scope).
>
>> There you go. You know what to fix :-)
>
> I'd better leave the RDF code as much as possible untouched, but I think
> I've found a clean solution to fix the handling of static variables and
> static methods, because with the current code there is no guarantee of
> initialization order.
>
> The static variables are private now and access is only possible by a
> public get function which controls the initialization of the variable.
>
> Any objections?
>
> Ingo
Received on Mon Apr 16 03:07:28 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 16 2012 - 03:07:28 CEST