diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-28 12:50:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-29 09:01:40 +0200 |
commit | ebc0a15515c2e29259a7e229cfbdfb5d26fc3006 (patch) | |
tree | 2ce9446ed312a1a7aed53183b19ecc9fefabea8a /desktop | |
parent | f0ae48b684e89acd7088c31a8feff5fc03d51105 (diff) |
remove more unnecesary OUString constructor use
when throwing exceptions
Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/offacc/acceptor.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index 872ef673261b..0c87994dc0ce 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -144,8 +144,9 @@ void Acceptor::initialize( const Sequence<Any>& aArguments ) // get connect string and protocol from accept string // "<connectString>;<protocol>" sal_Int32 nIndex1 = m_aAcceptString.indexOf( ';' ); - if (nIndex1 < 0) throw IllegalArgumentException( - OUString("Invalid accept-string format"), m_rContext, 1); + if (nIndex1 < 0) + throw IllegalArgumentException( + "Invalid accept-string format", m_rContext, 1); m_aConnectString = m_aAcceptString.copy( 0 , nIndex1 ).trim(); nIndex1++; sal_Int32 nIndex2 = m_aAcceptString.indexOf( ';' , nIndex1 ); @@ -170,8 +171,7 @@ void Acceptor::initialize( const Sequence<Any>& aArguments ) if (!bOk) { - throw IllegalArgumentException( - OUString("invalid initialization"), m_rContext, 1); + throw IllegalArgumentException( "invalid initialization", m_rContext, 1); } } |