diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 22:40:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 22:40:08 +0100 |
commit | 2e846d734bf3965c4104a5baab35a8fa524d42a2 (patch) | |
tree | ac2411e81412804dbe51147280db12ddff3d8999 /sw/source/core/unocore/unobkm.cxx | |
parent | 52388d29994a52f3dea83dbf214e81f9abfc11dc (diff) |
use uuid template here instead of hand-rolled ones
Diffstat (limited to 'sw/source/core/unocore/unobkm.cxx')
-rw-r--r-- | sw/source/core/unocore/unobkm.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx index fa3f3d9aaf68..aa92efdcf232 100644 --- a/sw/source/core/unocore/unobkm.cxx +++ b/sw/source/core/unocore/unobkm.cxx @@ -48,6 +48,7 @@ #include <SwRewriter.hxx> #include <docsh.hxx> #include <xmloff/odffields.hxx> +#include <comphelper/servicehelper.hxx> using namespace ::sw::mark; using namespace ::com::sun::star; @@ -196,10 +197,14 @@ SwXBookmark::CreateXBookmark(SwDoc & rDoc, ::sw::mark::IMark & rBookmark) return 0; } +namespace +{ + class theSwXBookmarkUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSwXBookmarkUnoTunnelId > {}; +} + const uno::Sequence< sal_Int8 > & SwXBookmark::getUnoTunnelId() { - static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId(); - return aSeq; + return theSwXBookmarkUnoTunnelId::get().getSeq(); } sal_Int64 SAL_CALL |