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

Miklos Vajna vmiklos at collabora.co.uk
Wed Apr 11 09:09:11 UTC 2018


 writerperfect/source/writer/exp/xmlfmt.cxx |    2 +-
 writerperfect/source/writer/exp/xmlimp.hxx |   10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit ca04e146ba4581f63bc9548ef926b611f1578804
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Apr 11 09:20:43 2018 +0200

    writerperfect: fix whitespace
    
    Be consistent with surrounding code.
    
    Change-Id: I86eb3a663a54a63c850ada229ea24d9c770365df
    Reviewed-on: https://gerrit.libreoffice.org/52708
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/writerperfect/source/writer/exp/xmlfmt.cxx b/writerperfect/source/writer/exp/xmlfmt.cxx
index 42e2b0aa70c0..e8b735c44890 100644
--- a/writerperfect/source/writer/exp/xmlfmt.cxx
+++ b/writerperfect/source/writer/exp/xmlfmt.cxx
@@ -36,7 +36,7 @@ XMLStylesContext::XMLStylesContext(XMLImport &rImport, StyleType eType)
 
 rtl::Reference<XMLImportContext> XMLStylesContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
 {
-    if (rName == "style:style" || rName == "style:page-layout" || rName == "style:master-page" )
+    if (rName == "style:style" || rName == "style:page-layout" || rName == "style:master-page")
         return new XMLStyleContext(mrImport, *this);
     return nullptr;
 }
diff --git a/writerperfect/source/writer/exp/xmlimp.hxx b/writerperfect/source/writer/exp/xmlimp.hxx
index 097a96cdcce9..4ef4bf3f5c43 100644
--- a/writerperfect/source/writer/exp/xmlimp.hxx
+++ b/writerperfect/source/writer/exp/xmlimp.hxx
@@ -114,8 +114,14 @@ public:
     const std::vector<FixedLayoutPage> &GetPageMetafiles() const;
     const css::uno::Reference<css::uno::XComponentContext> &GetComponentContext() const;
 
-    bool GetIsInPageSpan() const { return mbIsInPageSpan; }
-    void SetIsInPageSpan(bool bSet) { mbIsInPageSpan = bSet; }
+    bool GetIsInPageSpan() const
+    {
+        return mbIsInPageSpan;
+    }
+    void SetIsInPageSpan(bool bSet)
+    {
+        mbIsInPageSpan = bSet;
+    }
     void HandlePageSpan(const librevenge::RVNGPropertyList &rPropertyList);
 
     // XDocumentHandler


More information about the Libreoffice-commits mailing list