summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdview2.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:35 +0100
commit1a9e23609b56f2c45d7fbdf32d9f8a43bc3908ea (patch)
tree10a7e9e62eb6e1d0e153fed6471e1ca5b2e0af17 /sd/source/ui/view/sdview2.cxx
parent8571707e5e7988c8a10e7578c8f56409f0adb2d5 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Iad769ac61d17f6e348681a38ae11c832f75f6353
Diffstat (limited to 'sd/source/ui/view/sdview2.cxx')
-rw-r--r--sd/source/ui/view/sdview2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index 6899e061aac0..0cb06ef6b2b3 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -250,7 +250,7 @@ void View::DoCut(vcl::Window* )
const OutlinerView* pOLV = GetTextEditOutlinerView();
if( pOLV )
- ( (OutlinerView*) pOLV)->Cut();
+ const_cast<OutlinerView*>(pOLV)->Cut();
else if( AreObjectsMarked() )
{
OUString aStr(SD_RESSTR(STR_UNDO_CUT));
@@ -267,7 +267,7 @@ void View::DoCopy (vcl::Window* pWindow)
const OutlinerView* pOLV = GetTextEditOutlinerView();
if( pOLV )
- ( (OutlinerView*) pOLV)->Copy();
+ const_cast<OutlinerView*>(pOLV)->Copy();
else if( AreObjectsMarked() )
{
BrkAction();