summaryrefslogtreecommitdiffstats
path: root/connectivity/source/resource
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-29 17:20:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-29 18:18:28 +0200
commitc2ca6fabd1afc3fc07001721c2069d3c8db7000a (patch)
tree350741d6d19564bcaf00506bd7d22b4c644e0fdc /connectivity/source/resource
parentSome clean up (diff)
downloadcore-c2ca6fabd1afc3fc07001721c2069d3c8db7000a.tar.gz
core-c2ca6fabd1afc3fc07001721c2069d3c8db7000a.zip
Use comphelper::getComponentContext
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
Diffstat (limited to 'connectivity/source/resource')
-rw-r--r--connectivity/source/resource/sharedresources.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx
index 246591063547..902807829cb5 100644
--- a/connectivity/source/resource/sharedresources.cxx
+++ b/connectivity/source/resource/sharedresources.cxx
@@ -22,7 +22,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/officeresourcebundle.hxx>
-#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <tools/diagnose_ex.h>
@@ -35,8 +34,6 @@ namespace connectivity
/** === begin UNO using === **/
using ::com::sun::star::uno::Reference;
- using ::com::sun::star::beans::XPropertySet;
- using ::com::sun::star::uno::UNO_QUERY_THROW;
using ::com::sun::star::uno::XComponentContext;
using ::com::sun::star::uno::Exception;
/** === end UNO using === **/
@@ -82,12 +79,8 @@ namespace connectivity
{
try
{
- Reference< XPropertySet > xFactoryProps(
- ::comphelper::getProcessServiceFactory(), UNO_QUERY_THROW );
Reference< XComponentContext > xContext(
- xFactoryProps->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) ) ),
- UNO_QUERY_THROW
- );
+ comphelper::getProcessComponentContext() );
m_pResourceBundle.reset( new ::comphelper::OfficeResourceBundle( xContext, "cnr" ) );
}
catch( const Exception& )