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/unoportenum.cxx | |
parent | 52388d29994a52f3dea83dbf214e81f9abfc11dc (diff) |
use uuid template here instead of hand-rolled ones
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 961c84a64a7b..73c54a902029 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -59,8 +59,8 @@ #include <crsskip.hxx> #include <osl/mutex.hxx> #include <vcl/svapp.hxx> +#include <comphelper/servicehelper.hxx> #include <set> - #include <boost/shared_ptr.hpp> #include <boost/bind.hpp> #include <algorithm> @@ -198,13 +198,14 @@ namespace } } -/****************************************************************** - * SwXTextPortionEnumeration - ******************************************************************/ +namespace +{ + class theSwXTextPortionEnumerationUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSwXTextPortionEnumerationUnoTunnelId > {}; +} + const uno::Sequence< sal_Int8 > & SwXTextPortionEnumeration::getUnoTunnelId() { - static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId(); - return aSeq; + return theSwXTextPortionEnumerationUnoTunnelId::get().getSeq(); } sal_Int64 SAL_CALL SwXTextPortionEnumeration::getSomething( |