summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/dragmt3d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/engine3d/dragmt3d.cxx')
-rw-r--r--svx/source/engine3d/dragmt3d.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/engine3d/dragmt3d.cxx b/svx/source/engine3d/dragmt3d.cxx
index 9e7425a02ed0..3020e19a4ab0 100644
--- a/svx/source/engine3d/dragmt3d.cxx
+++ b/svx/source/engine3d/dragmt3d.cxx
@@ -338,9 +338,9 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
// Get modifier
sal_uInt16 nModifier = 0;
- if(dynamic_cast<const E3dView*>(&getSdrDragView()))
+ if(auto pDragView = dynamic_cast<const E3dView*>(&getSdrDragView()))
{
- const MouseEvent& rLastMouse = static_cast<E3dView&>(getSdrDragView()).GetMouseEvent();
+ const MouseEvent& rLastMouse = pDragView->GetMouseEvent();
nModifier = rLastMouse.GetModifier();
}
@@ -520,9 +520,9 @@ void E3dDragMove::MoveSdrDrag(const Point& rPnt)
// Get modifier
sal_uInt16 nModifier(0);
- if(dynamic_cast<const E3dView*>(&getSdrDragView()))
+ if(auto pDragView = dynamic_cast<const E3dView*>(&getSdrDragView()))
{
- const MouseEvent& rLastMouse = static_cast<E3dView&>(getSdrDragView()).GetMouseEvent();
+ const MouseEvent& rLastMouse = pDragView->GetMouseEvent();
nModifier = rLastMouse.GetModifier();
}