summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-01-20 08:52:12 +0000
committerOliver Bolte <obo@openoffice.org>2006-01-20 08:52:12 +0000
commitbd3363b0f2ae6777cd22768450d2d15955898419 (patch)
tree6430ea1aa1cb08524fbbd15db9b255e5c4e68ed8
parentb86fb80d2f085f26f55fb4aac6e18c6d9a823d21 (diff)
INTEGRATION: CWS optstor2 (1.18.18.1.2); FILE MERGED
2005/11/10 17:11:53 mav 1.18.18.1.2.2: RESYNC: (1.18.18.1-1.20); FILE MERGED 2005/10/13 14:57:58 mav 1.18.18.1.2.1: #i55785# let object own the temporary file
-rw-r--r--embeddedobj/source/msole/olemisc.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/embeddedobj/source/msole/olemisc.cxx b/embeddedobj/source/msole/olemisc.cxx
index 739515310395..2345cc3024c0 100644
--- a/embeddedobj/source/msole/olemisc.cxx
+++ b/embeddedobj/source/msole/olemisc.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: olemisc.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: rt $ $Date: 2005-10-19 12:41:05 $
+ * last change: $Author: obo $ $Date: 2006-01-20 09:52:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -56,6 +56,9 @@
using namespace ::com::sun::star;
+sal_Bool KillFile_Impl( const ::rtl::OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory );
+
+
//------------------------------------------------------
OleEmbeddedObject::OleEmbeddedObject( const uno::Reference< lang::XMultiServiceFactory >& xFactory,
const uno::Sequence< sal_Int8 >& aClassID,
@@ -161,6 +164,9 @@ OleEmbeddedObject::~OleEmbeddedObject()
Dispose();
} catch( uno::Exception& ) {}
}
+
+ if ( m_aTempURL.getLength() )
+ KillFile_Impl( m_aTempURL, m_xFactory );
}
//------------------------------------------------------