diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-20 14:55:06 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-20 14:56:25 +0000 |
commit | 9e5ad09552c8e3beba619a46d3bec6a508d877b2 (patch) | |
tree | b417c34ca7a3b0ba32befaa8bd8e40791cde3032 /tools/source/fsys | |
parent | c82ed24c4e51492105b5d94e164ece3cf86d6d86 (diff) |
cleanup: privatise SvStream's LockFile impl. and in-line Redirector bits
Diffstat (limited to 'tools/source/fsys')
-rw-r--r-- | tools/source/fsys/dirent.cxx | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx index e52fbba51ddc..2f726d03fe66 100644 --- a/tools/source/fsys/dirent.cxx +++ b/tools/source/fsys/dirent.cxx @@ -140,17 +140,6 @@ sal_Bool bInRedirection = sal_False; static osl::Mutex* pRedirectMutex = 0; //------------------------------------------------------------------------ -void FSysRedirector::Register( FSysRedirector *pRedirector ) -{ - if ( pRedirector ) - pRedirectMutex = new osl::Mutex; - else - DELETEZ( pRedirectMutex ); - _pRedirector = pRedirector; -} - -//------------------------------------------------------------------------ - void FSysRedirector::DoRedirect( String &rPath ) { String aURL(rPath); @@ -185,21 +174,16 @@ void FSysRedirector::DoRedirect( String &rPath ) aURL.Insert( String("file:///", osl_getThreadTextEncoding()), 0 ); // do redirection - Redirector(); + if ( !_pRedirector ) + { + pRedirectMutex = new osl::Mutex; + _pRedirector = new FSysRedirector; + } bInRedirection = sal_False; return; } -//------------------------------------------------------------------------ - -FSysRedirector* FSysRedirector::Redirector() -{ - if ( !_pRedirector ) - Register( new FSysRedirector ); - return _pRedirector; -} - #endif // BOOTSTRAP //-------------------------------------------------------------------- |