sw/source/uibase/uno/unotxdoc.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit f1aebfeebf2c27d5c531e4dfd667b6fdbaab4d03 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Nov 7 21:15:34 2014 +0000 coverity#1251169 Unchecked dynamic_cast and coverity#1251170 Unchecked dynamic_cast Change-Id: I3a4806aff3b42ea3cf507c7f435bb687cac32c60 diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index d48ab72..3cb41d5 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -2518,9 +2518,9 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount( sal_Int32 nRet = 0; if (bIsSwSrcView) { - SwSrcView *pSwSrcView = dynamic_cast< SwSrcView * >(pView); + SwSrcView& rSwSrcView = dynamic_cast<SwSrcView&>(*pView); OutputDevice *pOutDev = lcl_GetOutputDevice( *m_pPrintUIOptions ); - nRet = pSwSrcView->PrintSource( pOutDev, 1 /* dummy */, true /* get page count only */ ); + nRet = rSwSrcView.PrintSource( pOutDev, 1 /* dummy */, true /* get page count only */ ); } else { @@ -2975,9 +2975,9 @@ void SAL_CALL SwXTextDocument::render( { if (bIsSwSrcView) { - SwSrcView *pSwSrcView = dynamic_cast< SwSrcView * >(pView); + SwSrcView& rSwSrcView = dynamic_cast<SwSrcView&>(*pView); OutputDevice *pOutDev = lcl_GetOutputDevice( *m_pPrintUIOptions ); - pSwSrcView->PrintSource( pOutDev, nRenderer + 1, false ); + rSwSrcView.PrintSource(pOutDev, nRenderer + 1, false); } else {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits