Kaydet (Commit) 6269c009 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix pointer casting

Change-Id: I813168cbaa99d421886fc27be34efdfd7d97e0d4
üst b4be3f15
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <boost/static_assert.hpp>
#include <comphelper/string.hxx> #include <comphelper/string.hxx>
#include <tools/solar.h> #include <tools/solar.h>
#include <vcl/vclenum.hxx> #include <vcl/vclenum.hxx>
...@@ -1243,8 +1244,9 @@ void WW8TabBandDesc::ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pPar ...@@ -1243,8 +1244,9 @@ void WW8TabBandDesc::ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pPar
} }
else if ( nBrcVer == 8 ) else if ( nBrcVer == 8 )
{ {
BOOST_STATIC_ASSERT(sizeof (WW8_BRC) == 4);
for( int i = 0; i < 6; ++i ) for( int i = 0; i < 6; ++i )
aDefBrcs[i] = ((WW8_BRC*)&pParams)[i]; aDefBrcs[i] = reinterpret_cast<WW8_BRC const *>(pParams)[i];
} }
else else
memcpy( aDefBrcs, pParams, sizeof( aDefBrcs ) ); memcpy( aDefBrcs, pParams, sizeof( aDefBrcs ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment