summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-07-25 16:23:13 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-25 16:23:13 -0400
commit73bc1c8b7a43ce74540556ef458212c1873d9160 (patch)
tree5c9b4f529019073b06bcc9c3306b9e84b88bc866 /sw
parentdd41664543a9ae09d73dd1bb157ffd1e792731f8 (diff)
Referer was set to SfxMedium but was never used. Removing it.
Change-Id: I88ab874d4efc60d58722f0bb175d14a4d443398b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unocrsrhelper.cxx1
-rw-r--r--sw/source/filter/html/htmlcss1.cxx4
-rw-r--r--sw/source/ui/uiview/view2.cxx2
3 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index 3ee52b021afa..f66a4fbeef53 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -875,7 +875,6 @@ void InsertFile(SwUnoCrsr* pUnoCrsr,
// this sourcecode is not responsible for the lifetime of the shell, SfxObjectShellLock should not be used
SfxObjectShellRef aRef( pDocSh );
- pDocSh->RegisterTransfer( *pMed );
pMed->DownLoad(); // if necessary: start the download
if( aRef.Is() && 1 < aRef->GetRefCount() ) // Ref still valid?
{
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index 36dfe97d31f4..ecc0f5811340 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -1742,10 +1742,6 @@ sal_Bool SwHTMLParser::FileDownload( const String& rURL,
// Ein Medium anlegen
SfxMedium aDLMedium( rURL, STREAM_READ | STREAM_SHARE_DENYWRITE );
- // Medium registrieren, damit abgebrochen werden kann
- if( pDoc->GetDocShell() )
- pDoc->GetDocShell()->RegisterTransfer( aDLMedium );
-
SvStream* pStream = aDLMedium.GetInStream();
if( pStream )
{
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 9ca89f8dd4bc..7dfbe0296b59 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -2032,7 +2032,7 @@ long SwView::InsertMedium( sal_uInt16 nSlotId, SfxMedium* pMedium, sal_Int16 nVe
delete pMedium;
return -1;
}
- pDocSh->RegisterTransfer( *pMedium );
+
pMedium->DownLoad(); // ggfs. den DownLoad anstossen
if( aRef.Is() && 1 < aRef->GetRefCount() ) // noch gueltige Ref?
{