summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-26 14:29:07 +0200
committerNoel Grandin <noel@peralex.com>2014-05-27 08:20:11 +0200
commit9b791f9c31165b82ec0fa3760a8af18c5af21294 (patch)
tree3668f3b746bc584280a01162f86a0b2fe6b46510 /comphelper/source/streaming
parent3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (diff)
remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index ffc5136f804d..b5750d454b8f 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -207,7 +207,7 @@ void SAL_CALL SequenceInputStreamService::initialize( const uno::Sequence< ::com
throw frame::DoubleInitializationException();
if ( aArguments.getLength() != 1 )
- throw lang::IllegalArgumentException( OUString("Wrong number of arguments!\n"),
+ throw lang::IllegalArgumentException( "Wrong number of arguments!",
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
1 );
@@ -223,7 +223,7 @@ void SAL_CALL SequenceInputStreamService::initialize( const uno::Sequence< ::com
m_bInitialized = true;
}
else
- throw lang::IllegalArgumentException( OUString("Unexpected type of argument!\n"),
+ throw lang::IllegalArgumentException( "Unexpected type of argument!",
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
1 );
}