diff options
Diffstat (limited to 'sd/source/filter/eppt/pptx-epptbase.cxx')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptbase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx index 84bbcc53dc28..b3e1c4787645 100644 --- a/sd/source/filter/eppt/pptx-epptbase.cxx +++ b/sd/source/filter/eppt/pptx-epptbase.cxx @@ -499,7 +499,7 @@ void PPTWriterBase::SetCurrentStyleSheet( sal_uInt32 nPageNum ) { if ( nPageNum >= maStyleSheetList.size() ) nPageNum = 0; - mpStyleSheet = maStyleSheetList[ nPageNum ]; + mpStyleSheet = maStyleSheetList[ nPageNum ].get(); } bool PPTWriterBase::GetStyleSheets() @@ -526,7 +526,7 @@ bool PPTWriterBase::GetStyleSheets() ? static_cast<sal_uInt16>( *o3tl::doAccess<sal_Int32>(mAny) / 4.40972 ) : 1250; - maStyleSheetList.push_back( new PPTExStyleSheet( nDefaultTab, dynamic_cast<PPTExBulletProvider*>(this) ) ); + maStyleSheetList.emplace_back( new PPTExStyleSheet( nDefaultTab, dynamic_cast<PPTExBulletProvider*>(this) ) ); SetCurrentStyleSheet( nPageNum ); if ( GetPageByIndex( nPageNum, MASTER ) ) aXNamed.set( mXDrawPage, UNO_QUERY ); |