From 61451fec9b4ece2d2ef9d1d337dfc9e78c422d93 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Jan 2012 13:17:45 +0000 Subject: fdo#44981 - remove obsolete SWAPLONG macros --- svl/unx/inc/convert.hxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'svl/unx') diff --git a/svl/unx/inc/convert.hxx b/svl/unx/inc/convert.hxx index 751d25dfe083..45251e41a4b2 100644 --- a/svl/unx/inc/convert.hxx +++ b/svl/unx/inc/convert.hxx @@ -28,22 +28,17 @@ #ifndef _CONVERT_HXX #define _CONVERT_HXX -/* -#define _SWAPSHORT(x) ((((x) & 0xFF00)>>8) | (((x) & 0x00FF)<<8)) -#define _SWAPLONG(x) ((((x) & 0xFF000000)>>24) | (((x) & 0x00FF0000)>>8) | \ - (((x) & 0x0000FF00)<<8) | (((x) & 0x000000FF)<<24)) -*/ class Convert { public: static void Swap( long & nValue ) - { nValue = SWAPLONG( nValue ); } + { nValue = OSL_SWAPDWORD( nValue ); } static void Swap( ULONG & nValue ) - { nValue = SWAPLONG( nValue ); } + { nValue = OSL_SWAPDWORD( nValue ); } static void Swap( short & nValue ) - { nValue = SWAPSHORT( nValue ); } + { nValue = OSL_SWAPWORD( nValue ); } static void Swap( USHORT & nValue ) - { nValue = SWAPSHORT( nValue ); } + { nValue = OSL_SWAPWORD( nValue ); } static void Swap( Point & aPtr ) { Swap( aPtr.X() ); Swap( aPtr.Y() ); } static void Swap( Size & aSize ) -- cgit