[Libreoffice-commits] core.git: sfx2/source
Michael Stahl
mstahl at redhat.com
Fri Nov 20 13:02:12 PST 2015
sfx2/source/appl/fileobj.cxx | 25 -------------------------
sfx2/source/appl/fileobj.hxx | 5 -----
2 files changed, 30 deletions(-)
New commits:
commit e8169a821c40ee4b0c427f5c2e9b7fa6ab3b4536
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri Nov 20 21:44:07 2015 +0100
Revert "tdf#95614 fix freezing with linked images"
This reverts commit 58e2a9efe554ff2ac09a902d13a18e954487b672.
It breaks CppunitTest_sw_globalfilter.
Change-Id: I0eb787d698276b86bf4d77a5300ea98cce0fdea5
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx
index 3b68b34..e652768 100644
--- a/sfx2/source/appl/fileobj.cxx
+++ b/sfx2/source/appl/fileobj.cxx
@@ -46,8 +46,6 @@
#define FILETYPE_GRF 2
#define FILETYPE_OBJECT 3
-FnHashSet SvFileObject::m_aAsyncLoadsInProgress;
-
SvFileObject::SvFileObject()
: nPostUserEventId(nullptr)
, mxDelMed()
@@ -81,26 +79,6 @@ bool SvFileObject::GetData( css::uno::Any & rData,
const OUString & rMimeType,
bool bGetSynchron )
{
-
- // avoid loading of the same graphics asynchronously in the same document
- if ( !bAsyncLoadsInProgress )
- {
- // asynchronous loading of the same graphic in progress?
- if ( m_aAsyncLoadsInProgress.find(sFileNm + sReferer) != m_aAsyncLoadsInProgress.end() )
- {
- // remove graphic id to sign overloading
- m_aAsyncLoadsInProgress.erase(sFileNm + sReferer);
- return true;
- }
- }
- else
- {
- bAsyncLoadsInProgress = false;
- // sign of overloading?
- if ( m_aAsyncLoadsInProgress.find(sFileNm + sReferer) == m_aAsyncLoadsInProgress.end() )
- return true;
- }
-
SotClipboardFormatId nFmt = SotExchange::RegisterFormatMimeType( rMimeType );
switch( nType )
{
@@ -284,8 +262,6 @@ bool SvFileObject::LoadFile_Impl()
if( !bSynchron )
{
- m_aAsyncLoadsInProgress.insert(sFileNm + sReferer);
- bAsyncLoadsInProgress = true;
bLoadAgain = bDataReady = bInNewData = false;
bWaitForData = true;
@@ -519,7 +495,6 @@ IMPL_LINK_NOARG_TYPED( SvFileObject, DelMedium_Impl, void*, void )
{
nPostUserEventId = nullptr;
mxDelMed.Clear();
- m_aAsyncLoadsInProgress.erase(sFileNm + sReferer);
}
IMPL_LINK_TYPED( SvFileObject, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, void )
diff --git a/sfx2/source/appl/fileobj.hxx b/sfx2/source/appl/fileobj.hxx
index b6f878c3..a84126f 100644
--- a/sfx2/source/appl/fileobj.hxx
+++ b/sfx2/source/appl/fileobj.hxx
@@ -22,13 +22,10 @@
#include <sfx2/linksrc.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/linkmgr.hxx>
-#include <unordered_set>
class Graphic;
namespace sfx2 { class FileDialogHelper; }
-typedef std::unordered_set< OUString, OUStringHash, ::std::equal_to< OUString > > FnHashSet;
-
class SvFileObject : public sfx2::SvLinkSource
{
OUString sFileNm;
@@ -39,7 +36,6 @@ class SvFileObject : public sfx2::SvLinkSource
ImplSVEvent* nPostUserEventId;
tools::SvRef<SfxMedium> mxDelMed;
VclPtr<vcl::Window> pOldParent;
- static FnHashSet m_aAsyncLoadsInProgress;
sal_uInt8 nType;
@@ -53,7 +49,6 @@ class SvFileObject : public sfx2::SvLinkSource
bool bClearMedium : 1;
bool bStateChangeCalled : 1;
bool bInCallDownload : 1;
- bool bAsyncLoadsInProgress : 1;
bool GetGraphic_Impl( Graphic&, SvStream* pStream = nullptr );
bool LoadFile_Impl();
More information about the Libreoffice-commits
mailing list