summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-18 15:15:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-18 15:36:20 +0100
commit7f55c89470b3671f9702ca76317a5388bf7513f9 (patch)
tree472232e717e2120bb48cc9efa515e9986db8fcde /vbahelper
parent1aba46ee6707f1ff4b1e0f8d2feb58b34931deb1 (diff)
some other coverity foo
Change-Id: Ide5a10d7f9c45970c3cc5c78213c151c85ff4570
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx30
1 files changed, 8 insertions, 22 deletions
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