include/sfx2/objsh.hxx | 1 + sfx2/source/doc/objmisc.cxx | 5 +++++ sfx2/source/doc/sfxbasemodel.cxx | 4 ++-- sw/source/filter/xml/xmlimp.cxx | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-)
New commits: commit bdd797267b1e9e664b64e1c1525d1dde520a7063 Author: Caolán McNamara <[email protected]> Date: Mon Sep 18 15:39:31 2017 +0100 make fuzzer work Change-Id: I798558260f5f975f92b702ecf6f4504738ffbbfb Reviewed-on: https://gerrit.libreoffice.org/42422 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index bc33bb1dd33d..b514989055bc 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -460,6 +460,7 @@ public: virtual void SetFormatSpecificCompatibilityOptions( const OUString& /*rFilterTypeName*/ ) { /* Do not do anything here; Derived classes must overload to do actual work */ }; void TemplateDisconnectionAfterLoad(); + void SetLoading(SfxLoadedFlags nFlags); bool IsLoading() const; bool IsLoadingFinished() const; void SetAutoLoad( const INetURLObject&, sal_uInt32 nTime, bool bReload ); diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 6b7f5a89cc09..d0cce800325e 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1002,6 +1002,11 @@ void SfxObjectShell::SetAutoLoad( } } +void SfxObjectShell::SetLoading(SfxLoadedFlags nFlags) +{ + pImpl->nLoadedFlags = nFlags; +} + bool SfxObjectShell::IsLoadingFinished() const { return ( pImpl->nLoadedFlags == SfxLoadedFlags::ALL ); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 88d7e866d335..2e48c03e90f4 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -2248,7 +2248,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getBas Reference< script::XStorageBasedLibraryContainer > xBasicLibraries; if ( m_pData->m_pObjectShell.is() ) - xBasicLibraries.set( m_pData->m_pObjectShell->GetBasicContainer(), UNO_QUERY_THROW ); + xBasicLibraries.set(m_pData->m_pObjectShell->GetBasicContainer(), UNO_QUERY); return xBasicLibraries; } @@ -2258,7 +2258,7 @@ Reference< script::XStorageBasedLibraryContainer > SAL_CALL SfxBaseModel::getDia Reference< script::XStorageBasedLibraryContainer > xDialogLibraries; if ( m_pData->m_pObjectShell.is() ) - xDialogLibraries.set( m_pData->m_pObjectShell->GetDialogContainer(), UNO_QUERY_THROW ); + xDialogLibraries.set(m_pData->m_pObjectShell->GetDialogContainer(), UNO_QUERY); return xDialogLibraries; } diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 4ea3cebeef1e..fba57d39370a 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -1588,9 +1588,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT(SvStream &rStream) //by the xml filter and during the init, while its considered uninitialized, //setting a property will inform the document its modified, which attempts //to update the properties, which throws cause the properties are uninitialized -// xDocSh->SetLoading(SfxLoadedFlags::NONE); + xDocSh->SetLoading(SfxLoadedFlags::NONE); bool ret = xFilter->filter(aArgs); -// xDocSh->SetLoading(SfxLoadedFlags::ALL); + xDocSh->SetLoading(SfxLoadedFlags::ALL); return ret; }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
