summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-02-13 08:31:59 +0200
committerNoel Grandin <noel@peralex.com>2013-03-04 10:13:19 +0200
commitfb0f7c2415321a3bcae00802b98ae76144ea4e79 (patch)
tree36dad4567ce8bddb82dc0b78a8eead16fdaaa825 /svtools/source
parent57dbe20c2bfa0cf5ced0826f61a130414c948f83 (diff)
fdo#46808, convert singleton util::theOfficeInstallationDirectories
.. to new-style UNO. And deprecate old service in favour of singleton. Change-Id: I67244097c22af02530214d7c529dd0d32f5964c1
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/misc/templatefoldercache.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 18e873024165..538c2246111a 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -25,7 +25,7 @@
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
-#include <com/sun/star/util/XOfficeInstallationDirectories.hpp>
+#include <com/sun/star/util/theOfficeInstallationDirectories.hpp>
#include <ucbhelper/content.hxx>
#include <rtl/ref.hxx>
#include <salhelper/simplereferenceobject.hxx>
@@ -829,13 +829,7 @@ namespace svt
{
uno::Reference< uno::XComponentContext > xCtx(
comphelper::getProcessComponentContext() );
- xCtx->getValueByName(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
- "/singletons/com.sun.star.util.theOfficeInstallationDirectories" ) ) )
- >>= m_xOfficeInstDirs;
-
- OSL_ENSURE( m_xOfficeInstDirs.is(),
- "Unable to obtain office directories singleton!" );
+ m_xOfficeInstDirs = util::theOfficeInstallationDirectories::get(xCtx);
}
}
return m_xOfficeInstDirs;