[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sfx2/source

Tor Lillqvist tml at iki.fi
Thu Jun 13 13:31:39 PDT 2013


 sfx2/source/doc/objserv.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 5cc9305559e716d7b05102582b7f38a8ee904db2
Author: Tor Lillqvist <tml at iki.fi>
Date:   Thu Jun 6 19:12:55 2013 +0300

    WaE: unused variable 'pFilt'
    
    Change-Id: I58bacc42d9b596ffef62237d0554fb0a3bff50a1
    (cherry picked from commit db77d9700e1301c7cb47a76721639dd4c7829f31)

diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index cfd21cf..b2747f4 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -687,9 +687,6 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
                 SFX_REQUEST_ARG( rReq, pFilterNameItem, SfxStringItem, SID_FILTER_NAME, sal_False );
                 OUString aFilterName = pFilterNameItem ? OUString( pFilterNameItem->GetValue() )
                                                               : OUString();
-                const SfxFilter* pFilt = GetFactory().GetFilterContainer()->GetFilter4FilterName( aFilterName );
-
-                OSL_ENSURE( nId == SID_SAVEDOC || pFilt, "The filter can not be zero since it was used for storing!\n" );
 
                 // the StoreAsURL/StoreToURL method have called this method with false
                 // so it has to be restored to true here since it is a call from GUI


More information about the Libreoffice-commits mailing list