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 /forms | |
parent | f0ae48b684e89acd7088c31a8feff5fc03d51105 (diff) |
remove more unnecesary OUString constructor use
when throwing exceptions
Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/submission.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 15c19a2d7928..4314755ea52d 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -390,7 +390,7 @@ ODatabaseForm::ODatabaseForm( const ODatabaseForm& _cloneSource ) catch(const Exception&) { throw WrappedTargetException( - OUString( "Could not clone the given database form." ), + "Could not clone the given database form.", *const_cast< ODatabaseForm* >( &_cloneSource ), ::cppu::getCaughtException() ); diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 8dfea472f6f5..4d21f979583b 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -491,7 +491,7 @@ void SAL_CALL Submission::submitWithInteraction( if ( !xModel.is() || msID.isEmpty() ) throw RuntimeException( - OUString( "This is not a valid submission object." ), + "This is not a valid submission object.", *this ); |