[Libreoffice] SAL_DEPRECATED (was: [Libreoffice-commits] .: sal/inc)

Stephan Bergmann sbergman at redhat.com
Sun Sep 11 11:55:21 PDT 2011


On 09/09/2011 09:45 PM, Stephan Bergmann wrote:
> On 09/07/2011 02:56 PM, Bjoern Michaelsen wrote:
>> sal/inc/sal/types.h | 16 ++++++++++++++++
>> 1 file changed, 16 insertions(+)
>>
>> New commits:
>> commit de290e726ed2aa5a4c007d61a7db1042c45d43db
>> Author: Bjoern Michaelsen<bjoern.michaelsen at canonical.com>
>> Date: Wed Sep 7 12:37:08 2011 +0200
>>
>> introduce SAL_DEPRECATED macro
>
> Is it true that __declspec must go before the return type for MSC (i.e.,
> that the return type must go within the SAL_DEPRECATED argument)? Then,
> SAL_DEPRECATED suffers from the multiple-argument template return type
> unpleasantness described at
> <http://stackoverflow.com/questions/295120/c-mark-as-deprecated/295229#295229>.
> :(

It turns out SAL_DEPRECATED can be simplified after all, see 
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=d88bceafa0227e0e7bfe6bad1221eb93d3a9619a>.

-Stephan


More information about the LibreOffice mailing list