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

             Bug #: 44981
           Summary: EasyHack: remove obsolete SWAPLONG macros
    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]


The tools/ code contains a lot of obsolete and/or duplicated code one example
is:

tools/source/stream/stream.cxx

which uses this SWAPSHORT / SWAPLONG macro pair around the place.

It'd be great to kill all uses of these macros across the codebase to use the
preferred 'sal' abstraction:

#   define OSL_SWAPWORD(w)         OSL_MAKEWORD(OSL_HIBYTE(w),OSL_LOBYTE(w))
#   define OSL_SWAPDWORD(d)       
OSL_MAKEDWORD(OSL_SWAPWORD(OSL_HIWORD(d)),OSL_SWAPWORD(OSL_LOWORD(d)))

from osl/endian.h.

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