[Libreoffice-commits] core.git: framework/source
Jan Holesovsky
kendy at collabora.com
Mon Jan 20 11:40:01 PST 2014
framework/source/services/autorecovery.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit 111fe03e36dd7e819e8fa9bdf38a16f5284b6063
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Jan 20 19:57:26 2014 +0100
Rest of the incomplete conversion.
What I am doing today?! - sorry for the incomplete push.
Change-Id: Idca25b390820527481b1c672a0ad62f2d83a0e13
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index c0e0aeb..cd9d349 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: */
More information about the Libreoffice-commits
mailing list