summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-01-20 19:57:26 +0100
committerJan Holesovsky <kendy@collabora.com>2014-01-20 19:58:06 +0100
commit111fe03e36dd7e819e8fa9bdf38a16f5284b6063 (patch)
treea5ba93ae5580efb452e9b5ce3b4d3461bbbfd374 /framework
parent4b2b4133c2bd750a4b71230433dba0e41ced0abe (diff)
Rest of the incomplete conversion.
What I am doing today?! - sorry for the incomplete push. Change-Id: Idca25b390820527481b1c672a0ad62f2d83a0e13
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index c0e0aeba462e..cd9d3493b7e4 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -515,8 +515,6 @@ public:
AutoRecovery(const css::uno::Reference< css::uno::XComponentContext >& xContext);
virtual ~AutoRecovery( );
- void onCreate();
-
virtual OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException)
{
@@ -547,6 +545,9 @@ public:
// XTypeProvider
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) throw(css::uno::RuntimeException);
+ // XInitialization
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException);
+
//---------------------------------------
// css.frame.XDispatch
virtual void SAL_CALL dispatch(const css::util::URL& aURL ,
@@ -1419,7 +1420,7 @@ AutoRecovery::AutoRecovery(const css::uno::Reference< css::uno::XComponentContex
{
}
-void AutoRecovery::onCreate()
+void AutoRecovery::initialize(const css::uno::Sequence< css::uno::Any >& ) throw (css::uno::Exception, css::uno::RuntimeException)
{
// read configuration to know if autosave/recovery is on/off etcpp...
implts_readConfig();
@@ -4637,10 +4638,7 @@ com_sun_star_comp_framework_AutoRecovery_get_implementation(
css::uno::XComponentContext *context,
css::uno::Sequence<css::uno::Any> const &)
{
- rtl::Reference<AutoRecovery> x(new AutoRecovery(context));
- x->onCreate();
- x->acquire();
- return static_cast<cppu::OWeakObject *>(x.get());
+ return static_cast<cppu::OWeakObject *>(new AutoRecovery(context));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */