summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-05 17:15:14 +0000
committerDavid Tardon <dtardon@redhat.com>2015-01-05 20:34:27 +0000
commit1b98b475d1885583d1b6ae059806d76b272ea30d (patch)
tree15f1007fc6e448f79a181f212c78391ba4da3f06 /sw
parent6c1597d4f459250e35a228f95472c81d2be0263b (diff)
asan: cast is totally wrong here
Change-Id: I7341813b706faad60888e374fa50542abeb6842d (cherry picked from commit 3fab95491940160a1ee288491090b2f8b5875731) Reviewed-on: https://gerrit.libreoffice.org/13746 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 3f7897e38a34..b81f630c3f12 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1272,8 +1272,9 @@ void WW8TabBandDesc::ProcessSprmTTableBorders(int nBrcVer, const sal_uInt8* pPar
// sprmTTableBorders
if( nBrcVer == 6 )
{
- for( int i = 0; i < 6; ++i )
- aDefBrcs[i] = WW8_BRC( ((WW8_BRCVer6*)&pParams)[i] );
+ WW8_BRCVer6 *pVer6 = (WW8_BRCVer6*)pParams;
+ for (int i = 0; i < 6; ++i)
+ aDefBrcs[i] = WW8_BRC(pVer6[i]);
}
else if ( nBrcVer == 8 )
{