From 63de81621a8d075d1df00d54798e06271083110e Mon Sep 17 00:00:00 2001 From: Douglas Mencken Date: Mon, 24 Feb 2014 11:47:03 -0500 Subject: Update little-to-big endian GetSwapFloat functions rSt >> pPtr[3] >> pPtr[2] >> pPtr[1] >> pPtr[0] results in error: no match for 'operator>>' in 'rSt >> *(pPtr + 3u)' Change-Id: I1820bac8c72f7633ab01a17bf5d073b988e1b58c Reviewed-on: https://gerrit.libreoffice.org/8207 Tested-by: Michael Stahl Reviewed-by: Michael Stahl --- vcl/source/filter/wmf/enhwmf.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vcl/source') diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index 9023c50ad3ed..f2df15dbd012 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -155,12 +155,15 @@ using namespace std; #ifdef OSL_BIGENDIAN -// currently unused +// little endian <-> big endian switch static float GetSwapFloat( SvStream& rSt ) { float fTmp; sal_Int8* pPtr = (sal_Int8*)&fTmp; - rSt >> pPtr[3] >> pPtr[2] >> pPtr[1] >> pPtr[0]; // little endian <-> big endian switch + rSt.ReadSChar( pPtr[3] ); + rSt.ReadSChar( pPtr[2] ); + rSt.ReadSChar( pPtr[1] ); + rSt.ReadSChar( pPtr[0] ); return fTmp; } #endif -- cgit