From 7f55c89470b3671f9702ca76317a5388bf7513f9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Jul 2014 15:15:01 +0100 Subject: some other coverity foo Change-Id: Ide5a10d7f9c45970c3cc5c78213c151c85ff4570 --- vbahelper/source/vbahelper/vbahelper.cxx | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index 738c503e3ec5..cdee33b64b28 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -1015,18 +1015,11 @@ double ShapeHelper::getHeight() const return Millimeter::getInPoints(xShape->getSize().Height); } -void ShapeHelper::setHeight(double _fheight) throw ( css::script::BasicErrorException ) +void ShapeHelper::setHeight(double _fheight) { - try - { - css::awt::Size aSize = xShape->getSize(); - aSize.Height = Millimeter::getInHundredthsOfOneMillimeter(_fheight); - xShape->setSize(aSize); - } - catch (const css::uno::Exception&) - { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); - } + css::awt::Size aSize = xShape->getSize(); + aSize.Height = Millimeter::getInHundredthsOfOneMillimeter(_fheight); + xShape->setSize(aSize); } double ShapeHelper::getWidth() const @@ -1034,18 +1027,11 @@ double ShapeHelper::getWidth() const return Millimeter::getInPoints(xShape->getSize().Width); } -void ShapeHelper::setWidth(double _fWidth) throw ( css::script::BasicErrorException ) +void ShapeHelper::setWidth(double _fWidth) { - try - { - css::awt::Size aSize = xShape->getSize(); - aSize.Width = Millimeter::getInHundredthsOfOneMillimeter(_fWidth); - xShape->setSize(aSize); - } - catch (const css::uno::Exception&) - { - throw css::script::BasicErrorException( OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, OUString() ); - } + css::awt::Size aSize = xShape->getSize(); + aSize.Width = Millimeter::getInHundredthsOfOneMillimeter(_fWidth); + xShape->setSize(aSize); } double ShapeHelper::getLeft() const -- cgit