summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbaapplicationbase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbaapplicationbase.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
index 94c3419f6e2a..bf7ac741563c 100644
--- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx
+++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
@@ -60,6 +60,8 @@ using namespace ::ooo::vba;
typedef ::std::pair< OUString, ::std::pair< double, double > > VbaTimerInfo;
+namespace {
+
class VbaTimer
{
Timer m_aTimer;
@@ -115,6 +117,8 @@ public:
DECL_LINK( MacroCallHdl, Timer*, void );
};
+}
+
IMPL_LINK_NOARG(VbaTimer, MacroCallHdl, Timer *, void)
{
if ( m_aTimerInfo.second.second == 0 || GetNow() < m_aTimerInfo.second.second )
@@ -136,6 +140,8 @@ IMPL_LINK_NOARG(VbaTimer, MacroCallHdl, Timer *, void)
{}
}
+namespace {
+
struct VbaTimerInfoHash
{
size_t operator()( const VbaTimerInfo& rTimerInfo ) const
@@ -148,6 +154,8 @@ struct VbaTimerInfoHash
}
};
+}
+
typedef std::unordered_map< VbaTimerInfo, std::unique_ptr<VbaTimer>, VbaTimerInfoHash > VbaTimerHashMap;
struct VbaApplicationBase_Impl final