summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-01 00:39:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-01 00:56:18 +0200
commitf3010323077228e282509924d8bab29b35fd21f0 (patch)
tree2377a9b074b416682ab6c4350bd8496157200dc7 /stoc
parentc91f5851d0412cbf8fbe1b3d8da0048241aaba09 (diff)
IllegalArgumentException is a RuntimeException now
Change-Id: I929da9300cc02da114907841ad8805d1227f3f79
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/loader/dllcomponentloader.cxx23
1 files changed, 3 insertions, 20 deletions
diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx
index 5e65c20b11a7..0b2298766c31 100644
--- a/stoc/source/loader/dllcomponentloader.cxx
+++ b/stoc/source/loader/dllcomponentloader.cxx
@@ -36,7 +36,6 @@
#include <cppuhelper/bootstrap.hxx>
#include <com/sun/star/loader/XImplementationLoader.hpp>
-#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
@@ -96,9 +95,6 @@ public:
virtual sal_Bool SAL_CALL writeRegistryInfo( const Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl ) throw(CannotRegisterImplementationException, RuntimeException);
private:
- OUString expand_url( OUString const & url )
- SAL_THROW( (RuntimeException) );
-
Reference<XMultiServiceFactory> m_xSMgr;
};
@@ -162,20 +158,6 @@ void DllComponentLoader::initialize( const ::com::sun::star::uno::Sequence< ::co
// m_xSMgr = rServiceManager;
}
-//==================================================================================================
-OUString DllComponentLoader::expand_url( OUString const & url )
- SAL_THROW( (RuntimeException) )
-{
- try
- {
- return cppu::bootstrap_expandUri( url );
- }
- catch ( const IllegalArgumentException & e )
- {
- throw RuntimeException( e.Message, e.Context );
- }
-}
-
//*************************************************************************
Reference<XInterface> SAL_CALL DllComponentLoader::activate(
const OUString & rImplName, const OUString &, const OUString & rLibName,
@@ -202,7 +184,8 @@ Reference<XInterface> SAL_CALL DllComponentLoader::activate(
}
return loadSharedLibComponentFactory(
- expand_url( rLibName ), OUString(), rImplName, m_xSMgr, xKey, aPrefix );
+ cppu::bootstrap_expandUri(rLibName), OUString(), rImplName, m_xSMgr,
+ xKey, aPrefix );
}
@@ -219,7 +202,7 @@ sal_Bool SAL_CALL DllComponentLoader::writeRegistryInfo(
return sal_False;
#else
writeSharedLibComponentInfo(
- expand_url( rLibName ), OUString(), m_xSMgr, xKey );
+ cppu::bootstrap_expandUri(rLibName), OUString(), m_xSMgr, xKey );
return sal_True;
#endif
}