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/unosrch.cxx | |
parent | 52388d29994a52f3dea83dbf214e81f9abfc11dc (diff) |
use uuid template here instead of hand-rolled ones
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r-- | sw/source/core/unocore/unosrch.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index 79454750a9b1..ff9a574041d5 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -43,6 +43,7 @@ #include <com/sun/star/util/SearchFlags.hpp> #include <com/sun/star/i18n/TransliterationModules.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> +#include <comphelper/servicehelper.hxx> using namespace ::com::sun::star; using ::rtl::OUString; @@ -498,10 +499,14 @@ SwXTextSearch::~SwXTextSearch() delete pReplaceProperties; } +namespace +{ + class theSwXTextSearchUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSwXTextSearchUnoTunnelId > {}; +} + const uno::Sequence< sal_Int8 > & SwXTextSearch::getUnoTunnelId() { - static uno::Sequence< sal_Int8 > aSeq = ::CreateUnoTunnelId(); - return aSeq; + return theSwXTextSearchUnoTunnelId::get().getSeq(); } sal_Int64 SAL_CALL SwXTextSearch::getSomething( const uno::Sequence< sal_Int8 >& rId ) |