[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Mon Aug 29 14:46:31 UTC 2016
sw/source/core/doc/docdesc.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit abfc45841025d64700c4bb3d0c5d2addb3886974
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Aug 29 16:46:03 2016 +0200
loplugin:redundantcast
Change-Id: I072f661c767fc29b0d2d79a9c479f6591acb7573
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index a4f30a9..e04649b 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -828,8 +828,7 @@ static SwPageDesc* lcl_FindPageDesc( const SwPageDescs *pPageDescs,
SwPageDesc* SwDoc::FindPageDesc( const OUString & rName, size_t* pPos ) const
{
- return lcl_FindPageDesc(
- const_cast <SwPageDescs *>( &m_PageDescs ), pPos, rName );
+ return lcl_FindPageDesc( &m_PageDescs, pPos, rName );
}
bool SwDoc::ContainsPageDesc( const SwPageDesc *pDesc, size_t* pPos ) const
More information about the Libreoffice-commits
mailing list