summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdobj.cxx')
-rw-r--r--svx/source/svdraw/svdobj.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 2acccfd369c0..5b8f84d19b3e 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -2616,10 +2616,8 @@ SdrObject* SdrObject::ConvertToContourObj(SdrObject* pRet, bool bForceLineDash)
}
else
{
- if(pRet && dynamic_cast<const SdrPathObj*>( pRet) != nullptr)
+ if (SdrPathObj *pPathObj = dynamic_cast<SdrPathObj*>(pRet))
{
- SdrPathObj* pPathObj = static_cast<SdrPathObj*>(pRet);
-
// bezier geometry got created, even for straight edges since the given
// object is a result of DoConvertToPolyObj. For conversion to contour
// this is not really needed and can be reduced again AFAP