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

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Feb 14 00:22:19 UTC 2017


 writerperfect/qa/unit/TextImportTest.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 33dbfed46d95720c26699e0289ecacd87cd6e0a7
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Feb 14 01:21:16 2017 +0100

    more build fixes, loplugin:staticmethods
    
    Change-Id: I710182dfe2082b9782076faa27c8bd78e899a7cb

diff --git a/writerperfect/qa/unit/TextImportTest.cxx b/writerperfect/qa/unit/TextImportTest.cxx
index 2cb16b6..ba464c6 100644
--- a/writerperfect/qa/unit/TextImportTest.cxx
+++ b/writerperfect/qa/unit/TextImportTest.cxx
@@ -43,12 +43,12 @@ private:
     virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, rtl::OUString &rTypeName) override;
     virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdtGenerator &rGenerator, utl::MediaDescriptor &rDescriptor) override;
 
-    void generate(librevenge::RVNGTextInterface &rDocument) const;
+    static void generate(librevenge::RVNGTextInterface &rDocument);
 };
 
 bool TextImportFilter::doImportDocument(librevenge::RVNGInputStream &, OdtGenerator &rGenerator, utl::MediaDescriptor &)
 {
-    generate(rGenerator);
+    TextImportFilter::generate(rGenerator);
     return true;
 }
 
@@ -74,7 +74,7 @@ uno::Sequence< rtl::OUString > SAL_CALL TextImportFilter::getSupportedServiceNam
     return {"com.sun.star.document.ImportFilter", "com.sun.star.document.ExtendedTypeDetection"};
 }
 
-void TextImportFilter::generate(librevenge::RVNGTextInterface &rDocument) const
+void TextImportFilter::generate(librevenge::RVNGTextInterface &rDocument)
 {
     using namespace librevenge;
 


More information about the Libreoffice-commits mailing list