diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-06 11:52:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-06 11:52:21 +0200 |
commit | 29fbe4bb7c28184721fa718393b2454437076940 (patch) | |
tree | d8b9f8e89dd2d3bc0882dabae760e5ae2873d361 | |
parent | 158654894091db2689ddf83d2bb2104e9a408f29 (diff) |
-fsanitize=vptr: unnecessary, wrong downcast
is e.g. an SwDrawFrameFormat instead of an SwFlyFrameFormat during
CppunitTest_sw_uiwriter
Change-Id: I97511cf516f76b12e04da61ce6fd51f61ef83241
-rw-r--r-- | sw/source/core/undo/unattr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 9283ae2f3ac4..2ba9bb34e25d 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -395,7 +395,7 @@ void SwUndoFormatAttr::SaveFlyAnchor( bool bSvDrwPt ) bool SwUndoFormatAttr::RestoreFlyAnchor(::sw::UndoRedoContext & rContext) { SwDoc *const pDoc = & rContext.GetDoc(); - SwFlyFrameFormat* pFrameFormat = static_cast<SwFlyFrameFormat*>(m_pFormat); + SwFrameFormat* pFrameFormat = static_cast<SwFrameFormat*>(m_pFormat); const SwFormatAnchor& rAnchor = static_cast<const SwFormatAnchor&>( m_pOldSet->Get( RES_ANCHOR, false ) ); |