summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-30 01:22:55 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-11-30 19:42:12 +0100
commit57045024d66e4ffbd04be3c646805aac3ef32deb (patch)
tree01ad9abbf9e0f9f9f493ca11329d1550766de105 /desktop
parent8231ae65cdcd587ee8982df72c7c45361a374127 (diff)
de-cargocult singleton creation
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 68ff9b4004af..dcd8b530c020 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -36,7 +36,7 @@
#include "com/sun/star/bridge/UnoUrlResolver.hpp"
#include "com/sun/star/bridge/XUnoUrlResolver.hpp"
#include "com/sun/star/deployment/ExtensionManager.hpp"
-#include "com/sun/star/task/XRestartManager.hpp"
+#include "com/sun/star/task/OfficeRestartManager.hpp"
#include "boost/scoped_array.hpp"
#include "boost/shared_ptr.hpp"
#include <comphelper/processfactory.hxx>
@@ -566,9 +566,7 @@ void syncRepositories(
if (bModified)
{
- Reference<task::XRestartManager> restarter(
- comphelper_getProcessComponentContext()->getValueByName(
- OUSTR( "/singletons/com.sun.star.task.OfficeRestartManager") ), UNO_QUERY );
+ Reference<task::XRestartManager> restarter(task::OfficeRestartManager::get(comphelper::getProcessComponentContext()));
if (restarter.is())
{
OSL_TRACE( "Request restart for modified extensions manager" );