diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-15 20:09:26 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-15 20:09:59 -0700 |
commit | ade0d4b40af9d1f3f4f16b3bbb55d21ecb6a68e8 (patch) | |
tree | 5080cb92b3575fcff7a719ea53d826966e6a2698 /sw | |
parent | eba18bf9858b53877cd4174a8106d2aa589c57f6 (diff) |
Fix the parameters in throw RuntimeException
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbarows.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx index 01c8dfdd6f46..eb5327718a13 100644 --- a/sw/source/ui/vba/vbarows.cxx +++ b/sw/source/ui/vba/vbarows.cxx @@ -256,7 +256,10 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE setIndentWithAdjustNone( indent ); } - void SwVbaRows::setIndentWithAdjustProportional( const uno::Reference< word::XColumns >& xColumns, sal_Int32 indent ) throw (uno::RuntimeException) + void SwVbaRows::setIndentWithAdjustProportional( + const uno::Reference< word::XColumns >& xColumns, + sal_Int32 indent +) throw (uno::RuntimeException) { // calculate the new width and get the proportion between old and new uno::Reference< beans::XPropertySet > xTableProps( mxTextTable, uno::UNO_QUERY_THROW ); @@ -265,7 +268,14 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE sal_Int32 nNewWidth = nWidth - indent; if ((nNewWidth <= 0) || (nWidth <= 0)) { - throw new RuntimeException("Pb with width, in SwVbaRows::setIndentWithAdjustProportional (nNewWidth <= 0) || (nWidth <= 0)"); + throw uno::RuntimeException( + ::rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM( + "Pb with width, in SwVbaRows::setIndentWithAdjustProportional (nNewWidth <= 0) || (nWidth <= 0)" + ) + ), + uno::Reference< uno::XInterface >() + ); } double propFactor = (double)nNewWidth/(double)nWidth; |