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

Noel Grandin noel at peralex.com
Tue Mar 18 02:25:55 PDT 2014


 linguistic/source/convdic.cxx    |    4 ++--
 linguistic/source/convdicxml.hxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 85341374cb9c2244d8d681b1b44909a9fa829f11
Author: Noel Grandin <noel at peralex.com>
Date:   Tue Mar 18 11:24:01 2014 +0200

    remove unused parameter
    
    Change-Id: Iab723e78b0305dadee5598b21a9ea78093109b65

diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index beee732..3e909c7 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -141,7 +141,7 @@ sal_Bool IsConvDic( const OUString &rFileURL, sal_Int16 &nLang, sal_Int16 &nConv
     // first argument being 0 should stop the file from being parsed
     // up to the end (reading all entries) when the required
     // data (language, conversion type) is found.
-    ConvDicXMLImport *pImport = new ConvDicXMLImport( 0, rFileURL );
+    ConvDicXMLImport *pImport = new ConvDicXMLImport( 0 );
 
     //!! keep a first reference to ensure the lifetime of the object !!
     uno::Reference< XInterface > xRef( (document::XFilter *) pImport, UNO_QUERY );
@@ -220,7 +220,7 @@ void ConvDic::Load()
 
     //!! prevent function from being called recursively via HasEntry, AddEntry
     bNeedEntries = sal_False;
-    ConvDicXMLImport *pImport = new ConvDicXMLImport( this, aMainURL );
+    ConvDicXMLImport *pImport = new ConvDicXMLImport( this );
     //!! keep a first reference to ensure the lifetime of the object !!
     uno::Reference< XInterface > xRef( (document::XFilter *) pImport, UNO_QUERY );
     ReadThroughDic( aMainURL, *pImport );    // will implicitly add the entries
diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx
index de5fada..21f48d6 100644
--- a/linguistic/source/convdicxml.hxx
+++ b/linguistic/source/convdicxml.hxx
@@ -83,7 +83,7 @@ class ConvDicXMLImport : public SvXMLImport
 public:
 
     //!!  see comment for pDic member
-    ConvDicXMLImport( ConvDic *pConvDic, const OUString& /*&rFileName*/ ) :
+    ConvDicXMLImport( ConvDic *pConvDic ) :
         SvXMLImport ( comphelper::getProcessComponentContext(), "com.sun.star.lingu2.ConvDicXMLImport", IMPORT_ALL ),
         pDic        ( pConvDic )
     {


More information about the Libreoffice-commits mailing list