summaryrefslogtreecommitdiff
path: root/svl/unx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-01-30 13:17:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-30 13:18:38 +0000
commit61451fec9b4ece2d2ef9d1d337dfc9e78c422d93 (patch)
tree7db6906da867d6af5a765579e9338b0838e34daf /svl/unx
parentbbc94edb9a91b27910d43610db9994df10dd99e1 (diff)
fdo#44981 - remove obsolete SWAPLONG macros
Diffstat (limited to 'svl/unx')
-rw-r--r--svl/unx/inc/convert.hxx13
1 files changed, 4 insertions, 9 deletions
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 )