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 --- rsc/inc/rsctools.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rsc/inc') diff --git a/rsc/inc/rsctools.hxx b/rsc/inc/rsctools.hxx index ba266de01513..c969ad4f3af3 100644 --- a/rsc/inc/rsctools.hxx +++ b/rsc/inc/rsctools.hxx @@ -114,7 +114,7 @@ public: char* pTo = (char*)&nVal; *pTo++ = *pFrom++; *pTo++ = *pFrom++; - return bSwap ? SWAPSHORT( nVal ) : nVal; + return bSwap ? OSL_SWAPWORD( nVal ) : nVal; } sal_uInt32 GetLong( sal_uInt32 nPos ) { @@ -125,7 +125,7 @@ public: *pTo++ = *pFrom++; *pTo++ = *pFrom++; *pTo++ = *pFrom++; - return bSwap ? SWAPLONG( nVal ) : nVal; + return bSwap ? OSL_SWAPDWORD( nVal ) : nVal; } char * GetUTF8( sal_uInt32 nPos ) { @@ -212,7 +212,7 @@ public: void PutAt( sal_uInt32 nPos, sal_uInt16 nVal ) { if( bSwap ) - nVal = SWAPSHORT( nVal ); + nVal = OSL_SWAPWORD( nVal ); char* pTo = GetPointer( nPos ); char* pFrom = (char*)&nVal; *pTo++ = *pFrom++; -- cgit v1.2.3