The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST

Lubos Lunak l.lunak at
Tue Apr 3 09:32:31 PDT 2012

On Tuesday 03 of April 2012, Michael Meeks wrote:
> On Tue, 2012-04-03 at 17:52 +0200, Lubos Lunak wrote:
> > On Tuesday 03 of April 2012, Tor Lillqvist wrote:
> > > (SAL_REINTERPRET_CAST is not used anywhere, says opengrok, so that can
> > > be binned outright.)
> >
> >  Stuff from sal/ is public API, so you should not remove anything from
> > there or you might break backwards compatibility for somebody (the fix is
> > trivial here, but still).
> 	True, true - but pragmatically if you have an old extension, that you
> want to work on lots of older's / LibreOffices you'll
> want to build with an old SDK, since the new ones automagically require
> a newer LibreOffice.

 Although this may seem like being overly pedantic, it's quite possible that 
there is an extension that simply still uses the macro in the code just as a 
relic of the past, even though otherwise it would have no problem with recent 
SDK. And the cost in LO is leaving one simple macro in, compared to a 
possibly massive search&replace.

 Lubos Lunak
 l.lunak at

More information about the LibreOffice mailing list