diff options
-rw-r--r-- | comphelper/inc/comphelper/types.hxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/types.cxx | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/types.hxx b/comphelper/inc/comphelper/types.hxx index dfa1565c4493..a23116fb0ee2 100644 --- a/comphelper/inc/comphelper/types.hxx +++ b/comphelper/inc/comphelper/types.hxx @@ -156,6 +156,7 @@ namespace comphelper // no, we don't use templates here. This would lead to a lot of implicit uses of the conversion methods, // which would be difficult to trace ... + COMPHELPER_DLLPUBLIC sal_Int64 getINT64(const staruno::Any& _rAny); COMPHELPER_DLLPUBLIC sal_Int32 getINT32(const staruno::Any& _rAny); COMPHELPER_DLLPUBLIC sal_Int16 getINT16(const staruno::Any& _rAny); COMPHELPER_DLLPUBLIC double getDouble(const staruno::Any& _rAny); diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index f3df258e9d1f..c9eb6bb143c6 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -80,6 +80,14 @@ sal_Bool operator ==(const Time& _rLeft, const Time& _rRight) } //------------------------------------------------------------------------------ +sal_Int64 getINT64(const Any& _rAny) +{ + sal_Int64 nReturn = 0; + OSL_VERIFY( _rAny >>= nReturn ); + return nReturn; +} + +//------------------------------------------------------------------------------ sal_Int32 getINT32(const Any& _rAny) { sal_Int32 nReturn = 0; |