In sal/inc/sal/types.h, we have: /* Historical macros, no need to use, old use cases should be replaced * by their expansions. */ #ifdef __cplusplus #define SAL_CONST_CAST(type, expr) (const_cast< type >(expr)) #define SAL_STATIC_CAST(type, expr) (static_cast< type >(expr)) #endif /* __cplusplus */ Do what it says. I.e., for each instance of SAL_CONST_CAST(xxx, yyy), replace it with const_cast<xxx>( yyy ). Similar for SAL_STATIC_CAST. Hopefully by using a clever Perl one-liner, or something, and not by editing manually...
I did the changes with sed. Compiling locally now. Will push soon.
Thomas Arnhold committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/binfilter/commit/?id=681db8e3a2c727a1c30fb597a50b265857040094 fdo#48253: Expand SAL_CONST_CAST
Thomas Arnhold committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/binfilter/commit/?id=b5b4af6da1d44b47702ced8ea7cfc99c4788525a fdo#48253: Expand SAL_STATIC_CAST
Thomas Arnhold committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/binfilter/commit/?id=99e42be7c4afcff0177992aebe8de9559b7a5f45 fdo#48253: Expand SAL_STATIC_CAST leftovers
Thomas Arnhold committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=135c63c8f9cc363c0895542b0f3bed48b61ea836 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyBeginner SkillScript TopicCleanup ) [NinjaEdit]