[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Fri Jun 30 08:00:02 UTC 2017
sc/source/ui/docshell/impex.cxx | 33 +--------------------------------
1 file changed, 1 insertion(+), 32 deletions(-)
New commits:
commit 97b1e38de486f81dc24b11e9cc24bd4422cb8721
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Jun 29 17:40:32 2017 +0300
It seems that things work fine without that ScFormatFilterMissing
Change-Id: Iaaa8e12387659d4bd359fd5554966cfb883c0743
Reviewed-on: https://gerrit.libreoffice.org/39393
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 3312096dfc0a..76f6ed8a9803 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -2209,36 +2209,6 @@ bool ScImportExport::HTML2Doc( SvStream& rStrm, const OUString& rBaseURL )
#ifndef DISABLE_DYNLOADING
-class ScFormatFilterMissing : public ScFormatFilterPlugin {
- public:
- ScFormatFilterMissing()
- {
- OSL_FAIL("Missing file filters");
- }
- virtual ~ScFormatFilterMissing() {}
- virtual ErrCode ScImportLotus123( SfxMedium&, ScDocument*, rtl_TextEncoding ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportQuattroPro( SvStream*, ScDocument* ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportExcel( SfxMedium&, ScDocument*, const EXCIMPFORMAT ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportStarCalc10( SvStream&, ScDocument* ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportDif( SvStream&, ScDocument*, const ScAddress&,
- const rtl_TextEncoding ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportRTF( SvStream&, const OUString&, ScDocument*, ScRange& ) override { return SCERR_IMPORT_INTERNAL; }
- virtual ErrCode ScImportHTML( SvStream&, const OUString&, ScDocument*, ScRange&, double, bool, SvNumberFormatter*, bool ) override { return SCERR_IMPORT_INTERNAL; }
-
- virtual ScEEAbsImport *CreateRTFImport( ScDocument*, const ScRange& ) override { return nullptr; }
- virtual ScEEAbsImport *CreateHTMLImport( ScDocument*, const OUString&, const ScRange& ) override { return nullptr; }
- virtual OUString GetHTMLRangeNameList( ScDocument*, const OUString& ) override { return OUString(); }
-
- virtual ErrCode ScExportExcel5( SfxMedium&, ScDocument*, ExportFormatExcel, rtl_TextEncoding ) override { return SCERR_IMPORT_INTERNAL; }
- virtual void ScExportDif( SvStream&, ScDocument*, const ScAddress&, const rtl_TextEncoding ) override {}
- virtual void ScExportDif( SvStream&, ScDocument*, const ScRange&, const rtl_TextEncoding ) override {}
- virtual void ScExportHTML( SvStream&, const OUString&, ScDocument*, const ScRange&, const rtl_TextEncoding, bool,
- const OUString&, OUString&, const OUString& ) override {}
- virtual void ScExportRTF( SvStream&, ScDocument*, const ScRange&, const rtl_TextEncoding ) override {}
-
- virtual ScOrcusFilters* GetOrcusFilters() override { return nullptr; }
-};
-
extern "C" { static void SAL_CALL thisModule() {} }
#else
@@ -2269,8 +2239,7 @@ ScFormatFilterPlugin &ScFormatFilter::Get()
if (fn != nullptr)
plugin = reinterpret_cast<FilterFn>(fn)();
}
- if (plugin == nullptr)
- plugin = new ScFormatFilterMissing();
+ assert(plugin != nullptr);
#else
plugin = ScFilterCreate();
#endif
More information about the Libreoffice-commits
mailing list