diff options
author | Frank Schönheit <fs@openoffice.org> | 2000-10-06 13:28:26 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2000-10-06 13:28:26 +0000 |
commit | c020ece3cf9f976a80e9601688b34e2f80e06c30 (patch) | |
tree | 16a52c0bb398bbf6d79f394c9dfd17c2a4b388dc /unotools | |
parent | 8c42f20007bf57b0e49fee386b6f0c05e907487d (diff) |
use the comphelper versions of the two functions
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/processfactory/processfactory.cxx | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/unotools/source/processfactory/processfactory.cxx b/unotools/source/processfactory/processfactory.cxx index 42ca1ae1f25d..c26b49ef1f9d 100644 --- a/unotools/source/processfactory/processfactory.cxx +++ b/unotools/source/processfactory/processfactory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: processfactory.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:03:55 $ + * last change: $Author: fs $ $Date: 2000-10-06 14:28:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -77,34 +77,18 @@ using namespace osl; namespace utl { + // just use the comphelper versions of both functions. The versions here in unotools will become obsolete + // from SRC610 on. -/* - This function preserves only that the xProcessFactory variable will not be create when - the library is loaded. -*/ -Reference< XMultiServiceFactory > localProcessFactory( const Reference< XMultiServiceFactory >& xSMgr, sal_Bool bSet ) -{ - Guard< Mutex > aGuard( Mutex::getGlobalMutex() ); - - static Reference< XMultiServiceFactory > xProcessFactory; - if ( bSet ) + void setProcessServiceFactory(const Reference< XMultiServiceFactory >& xSMgr) { - xProcessFactory = xSMgr; + ::comphelper::setProcessServiceFactory(xSMgr); } - return xProcessFactory; -} - - -void setProcessServiceFactory(const Reference< XMultiServiceFactory >& xSMgr) -{ - localProcessFactory( xSMgr, sal_True ); -} - -Reference< XMultiServiceFactory > getProcessServiceFactory() -{ - return localProcessFactory( Reference< XMultiServiceFactory >(), sal_False ); -} + Reference< XMultiServiceFactory > getProcessServiceFactory() + { + return ::comphelper::getProcessServiceFactory(); + } } // namesapce utl |