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: [email protected]
        ReportedBy: [email protected]


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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to