summaryrefslogtreecommitdiffstats
path: root/include/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 08:52:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 08:42:30 +0200
commit528632660b72b105345945c13c5b68060d94a91b (patch)
tree860508d482959abeb9175f0ce6b9e65954269f95 /include/vbahelper
parentResolves: tdf#105740 select without selecting.. tdf#101588 b0rk (diff)
downloadcore-528632660b72b105345945c13c5b68060d94a91b.tar.gz
core-528632660b72b105345945c13c5b68060d94a91b.zip
convert ErrCode to strong typedef
would have preferred to re-use o3tl::strong_int, of which this is a modified copy, but there are lots of convenience accessors which are nice to define on the class. Change-Id: I301b807aaf02fbced3bf75de1e1692cde6c0340a Reviewed-on: https://gerrit.libreoffice.org/38497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbahelper.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx
index 0aa29ecd6e79..909382d01c78 100644
--- a/include/vbahelper/vbahelper.hxx
+++ b/include/vbahelper/vbahelper.hxx
@@ -32,6 +32,7 @@
#include <vbahelper/vbadllapi.h>
#include <vcl/pointr.hxx>
#include <vcl/ptrstyle.hxx>
+#include <vcl/errcode.hxx>
namespace com { namespace sun { namespace star {
namespace awt { class XControl; }
@@ -262,16 +263,16 @@ class VBAHELPER_DLLPUBLIC DebugHelper
{
public:
/// @throws css::script::BasicErrorException
- static void basicexception( const css::uno::Exception& ex, int err, const OUString& /*additionalArgument*/ );
+ static void basicexception( const css::uno::Exception& ex, ErrCode err, const OUString& /*additionalArgument*/ );
/// @throws css::script::BasicErrorException
- static void basicexception( int err, const OUString& additionalArgument );
+ static void basicexception( ErrCode err, const OUString& additionalArgument );
/// @throws css::script::BasicErrorException
static void basicexception( const css::uno::Exception& ex );
/// @throws css::script::BasicErrorException
- static void runtimeexception( int err );
+ static void runtimeexception( ErrCode err );
};
} // vba