diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 6f3c52bb37f52f57fea6479f1da6c1828fbd85fe (patch) | |
tree | d8e6db66db4c28335a62fbec4a282541ae083a85 /sw/source/core/doc/gctable.cxx | |
parent | 5429049e3b8fd12e84aca83be7ca19e52920f672 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb
Diffstat (limited to 'sw/source/core/doc/gctable.cxx')
-rw-r--r-- | sw/source/core/doc/gctable.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/gctable.cxx b/sw/source/core/doc/gctable.cxx index 7e52a678df6f..1951495e7383 100644 --- a/sw/source/core/doc/gctable.cxx +++ b/sw/source/core/doc/gctable.cxx @@ -87,7 +87,7 @@ static void lcl_GCBorder_GetLastBox_B( const SwTableBox* pBox, SwTableBoxes* pPa lcl_GCBorder_GetLastBox_L( pLine, pPara ); } else - pPara->push_back( (SwTableBox*)pBox ); + pPara->push_back( const_cast<SwTableBox*>(pBox) ); } // Find the "end" of the passed BorderLine. Returns the "Layout"Pos! @@ -126,7 +126,7 @@ static void lcl_GCBorder_DelBorder( const SwCollectTblLineBoxes& rCollTLB, sal_uInt16 nEndPos, SwShareBoxFmts* pShareFmts ) { - SwTableBox* pBox = (SwTableBox*)&rCollTLB.GetBox( rStt ); + SwTableBox* pBox = const_cast<SwTableBox*>(&rCollTLB.GetBox( rStt )); sal_uInt16 nNextPos; const SvxBorderLine* pLn = &rLine; @@ -148,7 +148,7 @@ static void lcl_GCBorder_DelBorder( const SwCollectTblLineBoxes& rCollTLB, if( ++rStt >= rCollTLB.Count() ) break; - pBox = (SwTableBox*)&rCollTLB.GetBox( rStt, &nNextPos ); + pBox = const_cast<SwTableBox*>(&rCollTLB.GetBox( rStt, &nNextPos )); if( nNextPos > nEndPos ) break; |