summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-28 10:11:15 +0200
committerNoel Grandin <noel@peralex.com>2014-05-29 09:01:39 +0200
commit7e4c6e1ff1961ad7a48cc9c1d9b3668372c6aed8 (patch)
tree0f09334558f978403621a5fb4f24f1bd7a758be6 /package
parent6cae6d682cfdec0104f68552def2d1b5719c8fbe (diff)
remove unnecessary linefeeds from the end of exception messages
Change-Id: Id1d7971639b2496dbe0274423ff4150d9295e8d6
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/ZipFile.cxx6
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx12
2 files changed, 9 insertions, 9 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 493a6cb49622..839a1c4ea623 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -381,18 +381,18 @@ uno::Reference< XInputStream > ZipFile::StaticGetDataFromRawStream( const uno::R
throw ( packages::WrongPasswordException, ZipIOException, RuntimeException )
{
if ( !rData.is() )
- throw ZipIOException("Encrypted stream without encryption data!\n" );
+ throw ZipIOException("Encrypted stream without encryption data!" );
if ( !rData->m_aKey.getLength() )
throw packages::WrongPasswordException(THROW_WHERE );
uno::Reference< XSeekable > xSeek( xStream, UNO_QUERY );
if ( !xSeek.is() )
- throw ZipIOException("The stream must be seekable!\n" );
+ throw ZipIOException("The stream must be seekable!" );
// if we have a digest, then this file is an encrypted one and we should
// check if we can decrypt it or not
- OSL_ENSURE( rData->m_aDigest.getLength(), "Can't detect password correctness without digest!\n" );
+ OSL_ENSURE( rData->m_aDigest.getLength(), "Can't detect password correctness without digest!" );
if ( rData->m_aDigest.getLength() )
{
sal_Int32 nSize = sal::static_int_cast< sal_Int32 >( xSeek->getLength() );
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index d05676cc09c6..1c827c4fc8f6 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -715,7 +715,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
}
}
else
- throw IllegalArgumentException(THROW_WHERE "MediaType must be a string!\n",
+ throw IllegalArgumentException(THROW_WHERE "MediaType must be a string!",
uno::Reference< XInterface >(),
2 );
@@ -723,7 +723,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
else if ( aPropertyName == "Size" )
{
if ( !( aValue >>= aEntry.nSize ) )
- throw IllegalArgumentException(THROW_WHERE "Wrong type for Size property!\n",
+ throw IllegalArgumentException(THROW_WHERE "Wrong type for Size property!",
uno::Reference< XInterface >(),
2 );
}
@@ -746,7 +746,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
m_xBaseEncryptionData = new BaseEncryptionData;
}
else
- throw IllegalArgumentException(THROW_WHERE "Wrong type for Encrypted property!\n",
+ throw IllegalArgumentException(THROW_WHERE "Wrong type for Encrypted property!",
uno::Reference< XInterface >(),
2 );
@@ -772,7 +772,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
aNewKey = aSequence;
}
else
- throw IllegalArgumentException(THROW_WHERE "Wrong type for EncryptionKey property!\n",
+ throw IllegalArgumentException(THROW_WHERE "Wrong type for EncryptionKey property!",
uno::Reference< XInterface >(),
2 );
}
@@ -804,7 +804,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
uno::Sequence< beans::NamedValue > aKeys;
if ( !( aValue >>= aKeys ) )
{
- throw IllegalArgumentException(THROW_WHERE "Wrong type for StorageEncryptionKeys property!\n",
+ throw IllegalArgumentException(THROW_WHERE "Wrong type for StorageEncryptionKeys property!",
uno::Reference< XInterface >(),
2 );
}
@@ -845,7 +845,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
m_bCompressedIsSetFromOutside = true;
}
else
- throw IllegalArgumentException(THROW_WHERE "Wrong type for Compressed property!\n",
+ throw IllegalArgumentException(THROW_WHERE "Wrong type for Compressed property!",
uno::Reference< XInterface >(),
2 );
}