diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-26 14:29:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-27 08:20:11 +0200 |
commit | 9b791f9c31165b82ec0fa3760a8af18c5af21294 (patch) | |
tree | 3668f3b746bc584280a01162f86a0b2fe6b46510 /svx | |
parent | 3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (diff) |
remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmpgeimp.cxx | 4 | ||||
-rw-r--r-- | svx/source/sidebar/line/LinePropertyPanel.cxx | 6 | ||||
-rw-r--r-- | svx/source/table/tabledesign.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx index c49fc2cdc041..04c1bc2099a5 100644 --- a/svx/source/form/fmpgeimp.cxx +++ b/svx/source/form/fmpgeimp.cxx @@ -111,7 +111,7 @@ namespace size_t lhsCount = m_aComponentInfo.childCount( _components.first ); size_t rhsCount = m_aComponentInfo.childCount( _components.second ); if ( lhsCount != rhsCount ) - throw RuntimeException( OUString( "Found inconsistent form component hierarchies (1)!" ), NULL ); + throw RuntimeException( "Found inconsistent form component hierarchies (1)!" ); return lhsCount; } @@ -141,7 +141,7 @@ namespace Reference< XControlModel > lhsControlModel( _component.first, UNO_QUERY ); Reference< XControlModel > rhsControlModel( _component.second, UNO_QUERY ); if ( lhsControlModel.is() != rhsControlModel.is() ) - throw RuntimeException( OUString( "Found inconsistent form component hierarchies (2)!" ), NULL ); + throw RuntimeException( "Found inconsistent form component hierarchies (2)!" ); if ( lhsControlModel.is() ) m_rControlModelMap[ lhsControlModel ] = rhsControlModel; diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx index 072517d42f3a..e59b992cbf96 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.cxx +++ b/svx/source/sidebar/line/LinePropertyPanel.cxx @@ -304,11 +304,11 @@ LinePropertyPanel* LinePropertyPanel::Create ( SfxBindings* pBindings) { if (pParent == NULL) - throw lang::IllegalArgumentException(OUString("no parent Window given to LinePropertyPanel::Create"), NULL, 0); + throw lang::IllegalArgumentException("no parent Window given to LinePropertyPanel::Create", NULL, 0); if ( ! rxFrame.is()) - throw lang::IllegalArgumentException(OUString("no XFrame given to LinePropertyPanel::Create"), NULL, 1); + throw lang::IllegalArgumentException("no XFrame given to LinePropertyPanel::Create", NULL, 1); if (pBindings == NULL) - throw lang::IllegalArgumentException(OUString("no SfxBindings given to LinePropertyPanel::Create"), NULL, 2); + throw lang::IllegalArgumentException("no SfxBindings given to LinePropertyPanel::Create", NULL, 2); return new LinePropertyPanel( pParent, diff --git a/svx/source/table/tabledesign.cxx b/svx/source/table/tabledesign.cxx index a8f6d45fdbb4..5f132c375ed4 100644 --- a/svx/source/table/tabledesign.cxx +++ b/svx/source/table/tabledesign.cxx @@ -738,7 +738,7 @@ Any TableDesignFamily::getPropertyValue( const OUString& PropertyName ) throw (U } else { - throw UnknownPropertyException( OUString("unknown property: ") + PropertyName, static_cast<OWeakObject *>(this) ); + throw UnknownPropertyException( "unknown property: " + PropertyName, static_cast<OWeakObject *>(this) ); } } |