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

comphelper: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I8da24ffd5eb1ac1fe6a6d2312ddc4ab13828bf07
üst f7dca812
......@@ -31,9 +31,6 @@
#include <comphelper/genericpropertyset.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <comphelper/servicehelper.hxx>
#include <rtl/uuid.h>
using namespace ::rtl;
using namespace ::osl;
......@@ -242,15 +239,10 @@ uno::Sequence< uno::Type > SAL_CALL GenericPropertySet::getTypes()
return aTypes;
}
namespace
{
class theGenericPropertySetImplmentationId : public rtl::Static< UnoTunnelIdInit, theGenericPropertySetImplmentationId > {};
}
uno::Sequence< sal_Int8 > SAL_CALL GenericPropertySet::getImplementationId()
throw (uno::RuntimeException, std::exception)
{
return theGenericPropertySetImplmentationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// XServiceInfo
......
......@@ -21,8 +21,6 @@
#include <com/sun/star/uno/genfunc.h>
#include <cppuhelper/queryinterface.hxx>
#include <comphelper/sequence.hxx>
#include <rtl/instance.hxx>
namespace comphelper
{
......@@ -203,13 +201,9 @@ namespace comphelper
);
}
namespace { struct lcl_ImplId : public rtl::Static< ::cppu::OImplementationId, lcl_ImplId > {}; }
Sequence< sal_Int8 > SAL_CALL OStatefulPropertySet::getImplementationId() throw(RuntimeException, std::exception)
{
::cppu::OImplementationId &rID = lcl_ImplId::get();
return rID.getImplementationId();
return css::uno::Sequence<sal_Int8>();
}
......
......@@ -189,13 +189,9 @@ namespace comphelper
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException, std::exception);
#define IMPLEMENT_GET_IMPLEMENTATION_ID( classname ) \
namespace \
{ \
class the##classname##ImplementationId : public rtl::Static< ::cppu::OImplementationId, the##classname##ImplementationId> {}; \
} \
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL classname::getImplementationId( ) throw (::com::sun::star::uno::RuntimeException, std::exception) \
{ \
return the##classname##ImplementationId::get().getImplementationId(); \
return css::uno::Sequence<sal_Int8>(); \
}
#define IMPLEMENT_FORWARD_XTYPEPROVIDER2( classname, baseclass1, baseclass2 ) \
......
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