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 /cppcanvas | |
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 'cppcanvas')
-rw-r--r-- | cppcanvas/source/inc/implrenderer.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index 176264516e32..4f043b9b33a9 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -137,12 +137,15 @@ namespace cppcanvas } #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 |