diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:31:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:38 +0100 |
commit | 5429049e3b8fd12e84aca83be7ca19e52920f672 (patch) | |
tree | 3b473be72f20a82357bd3f8ee7aa558b6b517e99 /svx/source/svdraw/svdglev.cxx | |
parent | 0d05f417c3a7dcde89f5e15b29f39ce2db65b543 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22
Diffstat (limited to 'svx/source/svdraw/svdglev.cxx')
-rw-r--r-- | svx/source/svdraw/svdglev.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdglev.cxx b/svx/source/svdraw/svdglev.cxx index 85affa680634..abd7259e721a 100644 --- a/svx/source/svdraw/svdglev.cxx +++ b/svx/source/svdraw/svdglev.cxx @@ -54,7 +54,7 @@ void SdrGlueEditView::ImpDoMarkedGluePoints(PGlueDoFunc pDoFunc, bool bConst, co SdrGluePointList* pGPL=NULL; if (bConst) { const SdrGluePointList* pConstGPL=pObj->GetGluePointList(); - pGPL=(SdrGluePointList*)pConstGPL; + pGPL=const_cast<SdrGluePointList*>(pConstGPL); } else { pGPL=pObj->ForceGluePointList(); } @@ -106,7 +106,7 @@ SDR_TRISTATE SdrGlueEditView::IsMarkedGluePointsEscDir(sal_uInt16 nThisEsc) cons ForceUndirtyMrkPnt(); bool bFirst=true; sal_uInt16 nRet=0; - ((SdrGlueEditView*)this)->ImpDoMarkedGluePoints(ImpGetEscDir,true,&bFirst,&nThisEsc,&nRet); + const_cast<SdrGlueEditView*>(this)->ImpDoMarkedGluePoints(ImpGetEscDir,true,&bFirst,&nThisEsc,&nRet); return (SDR_TRISTATE)nRet; } @@ -144,7 +144,7 @@ SDR_TRISTATE SdrGlueEditView::IsMarkedGluePointsPercent() const ForceUndirtyMrkPnt(); bool bFirst=true; sal_uInt16 nRet=sal_True; - ((SdrGlueEditView*)this)->ImpDoMarkedGluePoints(ImpGetPercent,true,&bFirst,&nRet); + const_cast<SdrGlueEditView*>(this)->ImpDoMarkedGluePoints(ImpGetPercent,true,&bFirst,&nRet); return (SDR_TRISTATE)nRet; } @@ -196,7 +196,7 @@ sal_uInt16 SdrGlueEditView::GetMarkedGluePointsAlign(bool bVert) const bool bFirst=true; bool bDontCare=false; sal_uInt16 nRet=0; - ((SdrGlueEditView*)this)->ImpDoMarkedGluePoints(ImpGetAlign,true,&bFirst,&bDontCare,&bVert,&nRet); + const_cast<SdrGlueEditView*>(this)->ImpDoMarkedGluePoints(ImpGetAlign,true,&bFirst,&bDontCare,&bVert,&nRet); return nRet; } |