diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-20 11:10:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-20 15:04:11 +0100 |
commit | 3a94a46fc2cba33fd7d735bbcd62692f1e51183a (patch) | |
tree | b67e86e3c6a7b1776941800b85d455b4ad1d11f0 /framework/source/jobs | |
parent | 5d4f525da7f560f85c2ce18f1ca1570d3cc53a50 (diff) |
Access safe members directly
Change-Id: I8d145fcf3dbcb2436392ee01740255a460c610a6
Diffstat (limited to 'framework/source/jobs')
-rw-r--r-- | framework/source/jobs/shelljob.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/framework/source/jobs/shelljob.cxx b/framework/source/jobs/shelljob.cxx index 8a63290fc4cc..997ce0644dd5 100644 --- a/framework/source/jobs/shelljob.cxx +++ b/framework/source/jobs/shelljob.cxx @@ -23,7 +23,6 @@ #include <jobs/shelljob.hxx> #include <jobs/jobconst.hxx> -#include <threadhelp/guard.hxx> #include <services.h> @@ -80,8 +79,7 @@ DEFINE_INIT_SERVICE(ShellJob, ShellJob::ShellJob(const css::uno::Reference< css::uno::XComponentContext >& xContext) - : ThreadHelpBase( ) - , m_xContext (xContext) + : m_xContext (xContext) { } @@ -141,15 +139,9 @@ css::uno::Any ShellJob::impl_generateAnswer4Deactivation() OUString ShellJob::impl_substituteCommandVariables(const OUString& sCommand) { - // SYNCHRONIZED -> - Guard aReadLock(m_aLock); - css::uno::Reference< css::uno::XComponentContext > xContext = m_xContext; - aReadLock.unlock(); - // <- SYNCHRONIZED - try { - css::uno::Reference< css::util::XStringSubstitution > xSubst( css::util::PathSubstitution::create(xContext) ); + css::uno::Reference< css::util::XStringSubstitution > xSubst( css::util::PathSubstitution::create(m_xContext) ); const ::sal_Bool bSubstRequired = sal_True; const OUString sCompleteCommand = xSubst->substituteVariables(sCommand, bSubstRequired); |