diff options
author | Douglas Mencken <dougmencken@gmail.com> | 2014-02-24 11:47:03 -0500 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-25 13:43:28 +0000 |
commit | 63de81621a8d075d1df00d54798e06271083110e (patch) | |
tree | 432b98d09f18b190ebae9743137211ee53df7ce5 /vcl | |
parent | 52d3e89bc2a6af3f7411c1d95de879c106580d76 (diff) |
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 <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/wmf/enhwmf.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 |