[Libreoffice-commits] core.git: lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Tue Feb 28 12:36:51 UTC 2017


 lotuswordpro/source/filter/lwppagelayout.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 11c92df5e61aba0e37a4b3d6e5aaace084812d71
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 28 12:35:50 2017 +0000

    loplugin:subtlezeroinit
    
    Change-Id: I29197c9a4093d904d1f7b990de08fbf8254c168e

diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index 35d6119..45e1047 100644
--- a/lotuswordpro/source/filter/lwppagelayout.cxx
+++ b/lotuswordpro/source/filter/lwppagelayout.cxx
@@ -339,7 +339,7 @@ void LwpPageLayout::RegisterStyle()
     OUString pmname = pm1->GetStyleName();
 
     //Add master page
-    XFMasterPage* p1 = new XFMasterPage();
+    XFMasterPage* p1 = new XFMasterPage;
     p1->SetStyleName(GetName().str());
     p1->SetPageMaster(pmname);
     p1 = static_cast<XFMasterPage*>(pXFStyleManager->AddStyle(p1).m_pStyle);
@@ -398,7 +398,7 @@ OUString LwpPageLayout::RegisterEndnoteStyle()
     OUString pmname = pm1->GetStyleName();
 
     //Add master page
-    XFMasterPage* p1 = new XFMasterPage();
+    XFMasterPage* p1 = new XFMasterPage;
     p1->SetStyleName("Endnote");
     p1->SetPageMaster(pmname);
 


More information about the Libreoffice-commits mailing list