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

accessibility: simplify deprecated XTypeProvider.getImplementationId

Change-Id: I7f8848adf245a4fdf56bff67cc15ee0efb818c43
üst 63036052
......@@ -326,15 +326,10 @@ void SAL_CALL AccessibleBrowseBoxBase::removeAccessibleEventListener(
// XTypeProvider --------------------------------------------------------------
namespace
{
class theAccessibleBrowseBoxBaseImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleBrowseBoxBaseImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxBase::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleBrowseBoxBaseImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// XServiceInfo ---------------------------------------------------------------
......
......@@ -325,15 +325,10 @@ OUString SAL_CALL AccessibleBrowseBoxHeaderBar::getImplementationName()
return OUString( "com.sun.star.comp.svtools.AccessibleBrowseBoxHeaderBar" );
}
namespace
{
class theAccessibleBrowseBoxHeaderBarImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleBrowseBoxHeaderBarImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxHeaderBar::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleBrowseBoxHeaderBarImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// internal virtual methods ---------------------------------------------------
......
......@@ -188,15 +188,10 @@ Sequence< uno::Type > SAL_CALL AccessibleBrowseBoxTableBase::getTypes()
AccessibleBrowseBoxTableImplHelper::getTypes() );
}
namespace
{
class theAccessibleBrowseBoxTableBaseImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleBrowseBoxTableBaseImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxTableBase::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleBrowseBoxTableBaseImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// internal virtual methods ---------------------------------------------------
......
......@@ -284,15 +284,10 @@ void SAL_CALL AccessibleGridControlBase::removeAccessibleEventListener(
// XTypeProvider --------------------------------------------------------------
namespace
{
class theAccessibleGridControlBaseImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleGridControlBaseImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleGridControlBase::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleGridControlBaseImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// XServiceInfo ---------------------------------------------------------------
......
......@@ -214,15 +214,10 @@ OUString SAL_CALL AccessibleGridControlHeader::getImplementationName()
return OUString( "com.sun.star.accessibility.AccessibleGridControlHeader" );
}
namespace
{
class theAccessibleGridControlHeaderImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleGridControlHeaderImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleGridControlHeader::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleGridControlHeaderImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// internal virtual methods ---------------------------------------------------
......
......@@ -200,15 +200,10 @@ Sequence< uno::Type > SAL_CALL AccessibleGridControlTableBase::getTypes()
AccessibleGridControlTableImplHelper::getTypes() );
}
namespace
{
class theAccessibleGridControlTableBaseImplementationId : public rtl::Static< UnoTunnelIdInit, theAccessibleGridControlTableBaseImplementationId > {};
}
Sequence< sal_Int8 > SAL_CALL AccessibleGridControlTableBase::getImplementationId()
throw ( uno::RuntimeException, std::exception )
{
return theAccessibleGridControlTableBaseImplementationId::get().getSeq();
return css::uno::Sequence<sal_Int8>();
}
// internal helper methods ----------------------------------------------------
......
......@@ -203,19 +203,7 @@ throw(RuntimeException, std::exception)
Sequence< sal_Int8 > AccessibleIconChoiceCtrlEntry::getImplementationId() throw (RuntimeException, std::exception)
{
static ::cppu::OImplementationId* pId = NULL;
if ( !pId )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
if ( !pId )
{
static ::cppu::OImplementationId aId;
pId = &aId;
}
}
return pId->getImplementationId();
return css::uno::Sequence<sal_Int8>();
}
// XComponent
......
......@@ -217,19 +217,7 @@ namespace accessibility
Sequence< sal_Int8 > AccessibleListBoxEntry::getImplementationId() throw (RuntimeException, std::exception)
{
static ::cppu::OImplementationId* pId = NULL;
if ( !pId )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
if ( !pId )
{
static ::cppu::OImplementationId aId;
pId = &aId;
}
}
return pId->getImplementationId();
return css::uno::Sequence<sal_Int8>();
}
......
......@@ -170,19 +170,7 @@ Sequence< Type > SAL_CALL VCLXAccessibleListItem::getTypes( ) throw (RuntimeExc
Sequence< sal_Int8 > VCLXAccessibleListItem::getImplementationId() throw (RuntimeException, std::exception)
{
static ::cppu::OImplementationId* pId = NULL;
if ( !pId )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
if ( !pId )
{
static ::cppu::OImplementationId aId;
pId = &aId;
}
}
return pId->getImplementationId();
return css::uno::Sequence<sal_Int8>();
}
// XComponent
......
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