Kaydet (Commit) f3010323 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

IllegalArgumentException is a RuntimeException now

Change-Id: I929da9300cc02da114907841ad8805d1227f3f79
üst c91f5851
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <cppuhelper/bootstrap.hxx> #include <cppuhelper/bootstrap.hxx>
#include <com/sun/star/loader/XImplementationLoader.hpp> #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/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XInitialization.hpp>
...@@ -96,9 +95,6 @@ public: ...@@ -96,9 +95,6 @@ public:
virtual sal_Bool SAL_CALL writeRegistryInfo( const Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl ) throw(CannotRegisterImplementationException, RuntimeException); virtual sal_Bool SAL_CALL writeRegistryInfo( const Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl ) throw(CannotRegisterImplementationException, RuntimeException);
private: private:
OUString expand_url( OUString const & url )
SAL_THROW( (RuntimeException) );
Reference<XMultiServiceFactory> m_xSMgr; Reference<XMultiServiceFactory> m_xSMgr;
}; };
...@@ -162,20 +158,6 @@ void DllComponentLoader::initialize( const ::com::sun::star::uno::Sequence< ::co ...@@ -162,20 +158,6 @@ void DllComponentLoader::initialize( const ::com::sun::star::uno::Sequence< ::co
// m_xSMgr = rServiceManager; // 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( Reference<XInterface> SAL_CALL DllComponentLoader::activate(
const OUString & rImplName, const OUString &, const OUString & rLibName, const OUString & rImplName, const OUString &, const OUString & rLibName,
...@@ -202,7 +184,8 @@ Reference<XInterface> SAL_CALL DllComponentLoader::activate( ...@@ -202,7 +184,8 @@ Reference<XInterface> SAL_CALL DllComponentLoader::activate(
} }
return loadSharedLibComponentFactory( 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( ...@@ -219,7 +202,7 @@ sal_Bool SAL_CALL DllComponentLoader::writeRegistryInfo(
return sal_False; return sal_False;
#else #else
writeSharedLibComponentInfo( writeSharedLibComponentInfo(
expand_url( rLibName ), OUString(), m_xSMgr, xKey ); cppu::bootstrap_expandUri(rLibName), OUString(), m_xSMgr, xKey );
return sal_True; return sal_True;
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment