About DECLARE_LIST fdo#38832

Caolán McNamara caolanm at redhat.com
Wed May 2 04:24:33 PDT 2012


On Wed, 2012-05-02 at 04:08 -0700, julien2412 wrote:
> Hello,
> 
> Searching for "DECLARE_LIST" in Opengrok in core part gives, except the
> declaration in list.hxx, this :
> in svl/inc/svl/svdde.hxx
>      57 #ifndef _SVDDE_NOLISTS
>      58 DECLARE_LIST( DdeServices, DdeService* )
>      59 #else
>      60 typedef List DdeServices;
>      61 #endif
> 
> I searched about _SVDDE_NOLISTS and it seems nowhere to be seen.

Seeing as nothing is defining _SVDDE_NOLISTS then currently the
DECLARE_LIST branch is unconditionally taken, right ?, not the typedef
branch. So its the typedef branch that's dead.

> Could we just have "typedef List DdeServices;", move DECLARE_LIST
> declaration in binfilter part (since there are still some places to be
> converted) and remove completely DECLARE_LIST for core ?

Seeing as its the last DECLARE_LIST left in core it looks like a great
candidate to convert it to vector/list and allow removal of DECLARE_LIST
into binfilter. Watch out though, there's some windows only code in
ddesvr using the DdeServices thing.

C.



More information about the LibreOffice mailing list