summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/swthreadjoiner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/docnode/swthreadjoiner.cxx')
-rw-r--r--sw/source/core/docnode/swthreadjoiner.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sw/source/core/docnode/swthreadjoiner.cxx b/sw/source/core/docnode/swthreadjoiner.cxx
index ee5a3144cdf3..d13540d33ff8 100644
--- a/sw/source/core/docnode/swthreadjoiner.cxx
+++ b/sw/source/core/docnode/swthreadjoiner.cxx
@@ -29,26 +29,25 @@ using namespace ::com::sun::star;
namespace
{
- class theJoinerMutex : public rtl::Static<osl::Mutex, theJoinerMutex> {};
+class theJoinerMutex : public rtl::Static<osl::Mutex, theJoinerMutex>
+{
+};
- uno::Reference< util::XJobManager > pThreadJoiner;
+uno::Reference<util::XJobManager> pThreadJoiner;
}
-uno::Reference< util::XJobManager >& SwThreadJoiner::GetThreadJoiner()
+uno::Reference<util::XJobManager>& SwThreadJoiner::GetThreadJoiner()
{
osl::MutexGuard aGuard(theJoinerMutex::get());
- if ( !pThreadJoiner.is() )
+ if (!pThreadJoiner.is())
{
- pThreadJoiner = util::JobManager::create( comphelper::getProcessComponentContext() );
+ pThreadJoiner = util::JobManager::create(comphelper::getProcessComponentContext());
}
return pThreadJoiner;
}
-void SwThreadJoiner::ReleaseThreadJoiner()
-{
- pThreadJoiner.clear();
-}
+void SwThreadJoiner::ReleaseThreadJoiner() { pThreadJoiner.clear(); }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */