diff options
Diffstat (limited to 'stoc/source/inspect/introspection.cxx')
-rw-r--r-- | stoc/source/inspect/introspection.cxx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 9317a5c35493..c7c0fd638175 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -2404,20 +2404,6 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect( return new ImplIntrospectionAccess(aToInspectObj, pAccess); } -struct Instance { - explicit Instance( - css::uno::Reference<css::uno::XComponentContext> const & context): - instance(new Implementation(context)) - {} - - rtl::Reference<cppu::OWeakObject> instance; -}; - -struct Singleton: - public rtl::StaticWithArg< - Instance, css::uno::Reference<css::uno::XComponentContext>, Singleton> -{}; - } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * @@ -2427,7 +2413,7 @@ com_sun_star_comp_stoc_Introspection_get_implementation( { SAL_WARN_IF( arguments.hasElements(), "stoc", "unexpected singleton arguments"); - return cppu::acquire(Singleton::get(context).instance.get()); + return cppu::acquire(new Implementation(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |