diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-05 16:28:32 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-08 14:13:17 +0200 |
commit | 2979ff295c9fafdb92cb56cd1f5ddb0a6b56cf20 (patch) | |
tree | b2088ed0b437f8181af5bdce70fd0d7ef27ea8e0 /toolkit/source/controls/tree | |
parent | eae0dda3e2eddb55b4e2032136541c15ba87fa09 (diff) |
fdo#38835 strip out OUString globals
Change-Id: I1a435214af102461e02217f7d95248dac14e5f1a
Diffstat (limited to 'toolkit/source/controls/tree')
-rw-r--r-- | toolkit/source/controls/tree/treedatamodel.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx index ee1468ff22ac..3f50b3d081c5 100644 --- a/toolkit/source/controls/tree/treedatamodel.cxx +++ b/toolkit/source/controls/tree/treedatamodel.cxx @@ -258,9 +258,8 @@ sal_Bool SAL_CALL MutableTreeDataModel::supportsService( const OUString& Service Sequence< OUString > SAL_CALL MutableTreeDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { - ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); - static const OUString aServiceName( OUString::createFromAscii( szServiceName_MutableTreeDataModel ) ); - static const Sequence< OUString > aSeq( &aServiceName, 1 ); + Sequence< OUString > aSeq( 1 ); + aSeq[0] = "com.sun.star.awt.tree.MutableTreeDataModel"; return aSeq; } @@ -536,9 +535,8 @@ sal_Bool SAL_CALL MutableTreeNode::supportsService( const OUString& ServiceName Sequence< OUString > SAL_CALL MutableTreeNode::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { - ::osl::Guard< ::osl::Mutex > aGuard( maMutex ); - static const OUString aServiceName( "com.sun.star.awt.tree.MutableTreeNode" ); - static const Sequence< OUString > aSeq( &aServiceName, 1 ); + Sequence< OUString > aSeq( 1 ); + aSeq[0] = "com.sun.star.awt.tree.MutableTreeNode"; return aSeq; } |