summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-25 11:47:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-25 11:16:02 +0000
commitc5498c310f6765ec9857e34169fd4a8d48953eb7 (patch)
treecd89d0c906677e80b6953c5a4fd7746ee59eff52 /vbahelper/source
parent97f0fbe5830a5d2119fe9f5e8142fe45b255c2ac (diff)
loplugin:expandablemethods in UnoControls..vbahelper
Change-Id: I7e607df2a1f6d4eb207ee0d3eb30f41fac44a0c6 Reviewed-on: https://gerrit.libreoffice.org/30262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 406cc847225c..76b0e7e54f55 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -1063,15 +1063,11 @@ void DebugHelper::basicexception( const css::uno::Exception& ex ) throw( css::sc
basicexception( OUString(), ex, ERRCODE_BASIC_INTERNAL_ERROR, OUString() );
}
-void DebugHelper::runtimeexception( const OUString& DetailedMessage, const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ ) throw( css::uno::RuntimeException )
+void DebugHelper::runtimeexception( int err, const OUString& /*additionalArgument*/ ) throw( css::uno::RuntimeException )
{
// #TODO #FIXME ( do we want to support additionalArg here )
- throw css::uno::RuntimeException( DetailedMessage.concat( " " ).concat( ex.Message ).concat(" ").concat(OUString::number(err)), css::uno::Reference< css::uno::XInterface >() );
-}
-
-void DebugHelper::runtimeexception( int err, const OUString& additionalArgument ) throw( css::uno::RuntimeException )
-{
- runtimeexception( OUString(), css::uno::Exception(), err, additionalArgument );
+ throw css::uno::RuntimeException( css::uno::Exception().Message + " " + OUString::number(err),
+ css::uno::Reference< css::uno::XInterface >() );
}
Millimeter::Millimeter():m_nMillimeter(0) {}