[Libreoffice-bugs] [Bug 48253] New: [EasyHack] Replace SAL_CONST_CAST and SAL_STATIC_CAST macro uses by their expansion

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 3 17:32:11 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=48253

             Bug #: 48253
           Summary: [EasyHack] Replace SAL_CONST_CAST and SAL_STATIC_CAST
                    macro uses by their expansion
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO Master
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: tlillqvist at suse.com


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...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list