diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-10 19:46:46 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-10 19:46:46 -0500 |
commit | 53f428d9bf8f9648e21bf89cfbb406747536ed09 (patch) | |
tree | ff94ef032b339ea4a9aa9c216a2980887f9d2137 /package | |
parent | b8c819c04af6e12001dcc069a854cc6221f7e1a0 (diff) |
merge vosremoval-diagnoses patch
Diffstat (limited to 'package')
-rw-r--r-- | package/source/manifest/UnoRegister.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/ZipOutputStream.cxx | 1 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 4 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageFolder.cxx | 26 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 10 |
5 files changed, 21 insertions, 22 deletions
diff --git a/package/source/manifest/UnoRegister.cxx b/package/source/manifest/UnoRegister.cxx index 71f106236c23..1833ed97a3c7 100644 --- a/package/source/manifest/UnoRegister.cxx +++ b/package/source/manifest/UnoRegister.cxx @@ -31,7 +31,7 @@ #include <ManifestWriter.hxx> #include <cppuhelper/factory.hxx> #include <com/sun/star/registry/XRegistryKey.hpp> -#include <vos/diagnose.hxx> +#include <osl/diagnose.h> #include <ZipPackage.hxx> #include <zipfileaccess.hxx> diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx index 16457ec12493..5ba637e58896 100644 --- a/package/source/zipapi/ZipOutputStream.cxx +++ b/package/source/zipapi/ZipOutputStream.cxx @@ -133,7 +133,6 @@ void SAL_CALL ZipOutputStream::closeEntry( ) } if (pEntry->nCompressedSize != aDeflater.getTotalOut()) { - //VOS_DEBUG_ONLY("Invalid entry compressed size"); // Different compression strategies make the merit of this // test somewhat dubious pEntry->nCompressedSize = aDeflater.getTotalOut(); diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 9ba26e0100c5..2bab50217fd9 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -985,7 +985,7 @@ void ZipPackage::WriteMimetypeMagicFile( ZipOutputStream& aZipOut ) } catch ( ::com::sun::star::io::IOException & r ) { - VOS_ENSURE( 0, "Error adding mimetype to the ZipOutputStream" ); + OSL_ENSURE( 0, "Error adding mimetype to the ZipOutputStream" ); throw WrappedTargetException( OUString( RTL_CONSTASCII_USTRINGPARAM ( OSL_LOG_PREFIX "Error adding mimetype to the ZipOutputStream!" ) ), static_cast < OWeakObject * > ( this ), @@ -1030,7 +1030,7 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< Sequence } else { - VOS_ENSURE ( 0, "Couldn't get a ManifestWriter!" ); + OSL_ENSURE ( 0, "Couldn't get a ManifestWriter!" ); IOException aException; throw WrappedTargetException( OUString( RTL_CONSTASCII_USTRINGPARAM ( OSL_LOG_PREFIX "Couldn't get a ManifestWriter!" ) ), diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx index f0c4a11d22f4..147c4d0a2903 100644 --- a/package/source/zippackage/ZipPackageFolder.cxx +++ b/package/source/zippackage/ZipPackageFolder.cxx @@ -35,7 +35,7 @@ #include <ZipPackageFolderEnumeration.hxx> #include <com/sun/star/packages/zip/ZipConstants.hpp> #include <com/sun/star/embed/StorageFormats.hpp> -#include <vos/diagnose.hxx> +#include <osl/diagnose.h> #include <osl/time.h> #include <rtl/digest.h> #include <ContentInfo.hxx> @@ -335,12 +335,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } } @@ -431,7 +431,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr if ( !xStream.is() ) { - VOS_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); + OSL_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); bWritingFailed = sal_True; continue; } @@ -484,14 +484,14 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr } else { - VOS_ENSURE( 0, "The package component requires that every stream either be FROM a package or it must support XSeekable!" ); + OSL_ENSURE( 0, "The package component requires that every stream either be FROM a package or it must support XSeekable!" ); continue; } } } catch ( Exception& ) { - VOS_ENSURE( 0, "The stream provided to the package component has problems!" ); + OSL_ENSURE( 0, "The stream provided to the package component has problems!" ); bWritingFailed = sal_True; continue; } @@ -554,7 +554,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr if ( !xStream.is() ) { // Make sure that we actually _got_ a new one ! - VOS_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); + OSL_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); continue; } } @@ -582,12 +582,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } } @@ -609,7 +609,7 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr if ( !xStream.is() ) { // Make sure that we actually _got_ a new one ! - VOS_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); + OSL_ENSURE( 0, "ZipPackageStream didn't have a stream associated with it, skipping!" ); continue; } } @@ -639,12 +639,12 @@ void ZipPackageFolder::saveContents(OUString &rPath, std::vector < Sequence < Pr } catch ( ZipException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } catch ( IOException& ) { - VOS_ENSURE( 0, "Error writing ZipOutputStream" ); + OSL_ENSURE( 0, "Error writing ZipOutputStream" ); bWritingFailed = sal_True; } @@ -723,7 +723,7 @@ void ZipPackageFolder::releaseUpwardRef( void ) } clearParent(); - VOS_ENSURE ( m_refCount == 1, "Ref-count is not 1!" ); + OSL_ENSURE ( m_refCount == 1, "Ref-count is not 1!" ); #endif } diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index 6343607c8711..d824c5ca3484 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -40,7 +40,7 @@ #include <ZipPackage.hxx> #include <ZipFile.hxx> #include <EncryptedDataHeader.hxx> -#include <vos/diagnose.hxx> +#include <osl/diagnose.h> #include "wrapstreamforshare.hxx" #include <comphelper/seekableinput.hxx> @@ -410,12 +410,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getRawData() } catch (ZipException &)//rException) { - VOS_ENSURE( 0, "ZipException thrown");//rException.Message); + OSL_ENSURE( 0, "ZipException thrown");//rException.Message); return Reference < io::XInputStream > (); } catch (Exception &) { - VOS_ENSURE( 0, "Exception is thrown during stream wrapping!\n"); + OSL_ENSURE( 0, "Exception is thrown during stream wrapping!\n"); return Reference < io::XInputStream > (); } } @@ -441,12 +441,12 @@ Reference< io::XInputStream > SAL_CALL ZipPackageStream::getInputStream( ) } catch (ZipException &)//rException) { - VOS_ENSURE( 0,"ZipException thrown");//rException.Message); + OSL_ENSURE( 0,"ZipException thrown");//rException.Message); return Reference < io::XInputStream > (); } catch (Exception &) { - VOS_ENSURE( 0, "Exception is thrown during stream wrapping!\n"); + OSL_ENSURE( 0, "Exception is thrown during stream wrapping!\n"); return Reference < io::XInputStream > (); } } |