Kaydet (Commit) ade0d4b4 authored tarafından Joseph Powers's avatar Joseph Powers

Fix the parameters in throw RuntimeException

üst eba18bf9
...@@ -256,7 +256,10 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE ...@@ -256,7 +256,10 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE
setIndentWithAdjustNone( indent ); 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 // calculate the new width and get the proportion between old and new
uno::Reference< beans::XPropertySet > xTableProps( mxTextTable, uno::UNO_QUERY_THROW ); uno::Reference< beans::XPropertySet > xTableProps( mxTextTable, uno::UNO_QUERY_THROW );
...@@ -265,7 +268,14 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE ...@@ -265,7 +268,14 @@ void SwVbaRows::setIndentWithAdjustNone( sal_Int32 indent ) throw (uno::RuntimeE
sal_Int32 nNewWidth = nWidth - indent; sal_Int32 nNewWidth = nWidth - indent;
if ((nNewWidth <= 0) || (nWidth <= 0)) 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; double propFactor = (double)nNewWidth/(double)nWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment