diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx index e2e6304bd402..79ccef905918 100644 --- a/sd/source/core/sdpage2.cxx +++ b/sd/source/core/sdpage2.cxx @@ -148,7 +148,7 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName, for (size_t nObj = 0; nObj < nObjCount; ++nObj) { - SdrTextObj* pObj = static_cast( GetObj(nObj) ); + auto pObj = GetObj(nObj); if (pObj->GetObjInventor() == SdrInventor && pObj->GetObjIdentifier() == OBJ_OUTLINETEXT)