diff options
Diffstat (limited to 'lotuswordpro/source/filter/xfilter/xfpagemaster.cxx')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfpagemaster.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfpagemaster.cxx b/lotuswordpro/source/filter/xfilter/xfpagemaster.cxx index 62f2c38538da..ca5d1adbb84f 100644 --- a/lotuswordpro/source/filter/xfilter/xfpagemaster.cxx +++ b/lotuswordpro/source/filter/xfilter/xfpagemaster.cxx @@ -106,11 +106,9 @@ void XFPageMaster::SetMargins(double left, double right,double top, double bo m_aMargin.SetBottom(bottom); } -void XFPageMaster::SetBorders(XFBorders *pBorders) +void XFPageMaster::SetBorders(std::unique_ptr<XFBorders> pBorders) { - if( pBorders == m_pBorders.get() ) - return; - m_pBorders.reset( pBorders ); + m_pBorders = std::move( pBorders ); } void XFPageMaster::SetShadow(XFShadow *pShadow) |