diff options
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 5bcc3e0fc26d..6b3cd27efa3e 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -21,6 +21,7 @@ #include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> +#include <boost/static_assert.hpp> #include <comphelper/string.hxx> #include <tools/solar.h> #include <vcl/vclenum.hxx> @@ -1243,8 +1244,9 @@ void WW8TabBandDesc::ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pPar } else if ( nBrcVer == 8 ) { + BOOST_STATIC_ASSERT(sizeof (WW8_BRC) == 4); for( int i = 0; i < 6; ++i ) - aDefBrcs[i] = ((WW8_BRC*)&pParams)[i]; + aDefBrcs[i] = reinterpret_cast<WW8_BRC const *>(pParams)[i]; } else memcpy( aDefBrcs, pParams, sizeof( aDefBrcs ) ); |