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

Stephan Bergmann sbergman at redhat.com
Tue Mar 29 13:40:27 UTC 2016


 writerfilter/source/dmapper/StyleSheetTable.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b87df796ebc8f4d1a5cdfa290a0c6a676d4cc941
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Mar 29 15:39:53 2016 +0200

    loplugin:staticmethods
    
    Change-Id: I090c01ef2fc52b8bec74ec78e23f1104877c734f

diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 3f29ecb..14ae7fd 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -276,7 +276,7 @@ struct StyleSheetTable_Impl
     /// Appends the given key-value pair to the list of latent style properties of the current entry.
     void AppendLatentStyleProperty(const OUString& aName, Value& rValue);
     /// Sets all properties of xStyle back to default.
-    void SetPropertiesToDefault(const uno::Reference<style::XStyle>& xStyle);
+    static void SetPropertiesToDefault(const uno::Reference<style::XStyle>& xStyle);
 };
 
 
@@ -942,7 +942,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
 
                         // Standard is handled already in applyDefaults().
                         if (sConvertedStyleName != "Standard")
-                            m_pImpl->SetPropertiesToDefault(xStyle);
+                            StyleSheetTable_Impl::SetPropertiesToDefault(xStyle);
                     }
                     else
                     {
@@ -1478,7 +1478,7 @@ void StyleSheetTable::applyDefaults(bool bParaProperties)
             xParagraphStyles->getByName("Standard") >>= xStandard;
 
             uno::Reference<style::XStyle> xStyle(xStandard, uno::UNO_QUERY);
-            m_pImpl->SetPropertiesToDefault(xStyle);
+            StyleSheetTable_Impl::SetPropertiesToDefault(xStyle);
 
             uno::Sequence< beans::PropertyValue > aPropValues = m_pImpl->m_pDefaultParaProps->GetPropertyValues();
             for( sal_Int32 i = 0; i < aPropValues.getLength(); ++i )


More information about the Libreoffice-commits mailing list