diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 14:54:29 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 14:54:29 +0000 |
commit | 85cd316f384bf3bd9a6d99e4080a95bfecf97aa0 (patch) | |
tree | 3776534b5bd2b356884b2832245cc3066cc8c638 /sfx2/source/doc/docfile.cxx | |
parent | 49fdd3f60ec9562a36c8d249d38a1baababc8fb7 (diff) |
INTEGRATION: CWS sb59 (1.181.22); FILE MERGED
2006/08/18 19:21:23 sb 1.181.22.2: RESYNC: (1.181-1.184); FILE MERGED
2006/08/16 09:31:20 sb 1.181.22.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 9bfdb34b6744..d90519016c4e 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -4,9 +4,9 @@ * * $RCSfile: docfile.cxx,v $ * - * $Revision: 1.185 $ + * $Revision: 1.186 $ * - * last change: $Author: obo $ $Date: 2006-09-17 16:39:21 $ + * last change: $Author: obo $ $Date: 2006-10-12 15:54:29 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -799,7 +799,9 @@ sal_Bool SfxMedium::IsStorage() { String aURL; if ( !::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aURL ) ) + { DBG_ERROR("Physical name not convertable!"); + } pImp->bIsStorage = SotStorage::IsStorageFile( aURL ) && !SotStorage::IsOLEStorage( aURL); if ( !pImp->bIsStorage ) bTriedStorage = TRUE; @@ -1085,7 +1087,9 @@ uno::Reference < embed::XStorage > SfxMedium::GetStorage() { // open storage from the temporary file if ( !::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aStorageName ) ) + { DBG_ERROR("Physical name not convertable!"); + } CloseOutStream(); // create the set of the streams based on the temporary file @@ -2214,7 +2218,9 @@ void SfxMedium::GetMedium_Impl() if ( aName.Len() ) { if ( !::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aFileName ) ) + { DBG_ERROR("Physical name not convertable!"); + } } else aFileName = GetName(); @@ -2929,10 +2935,14 @@ SfxMedium::~SfxMedium() { String aTemp; if ( !::utl::LocalFileHelper::ConvertPhysicalNameToURL( aName, aTemp )) + { DBG_ERROR("Physical name not convertable!"); + } if ( !::utl::UCBContentHelper::Kill( aTemp ) ) + { DBG_ERROR("Couldn't remove temporary file!"); + } } pFilter = 0; |