summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/accpage.cxx')
-rw-r--r--sw/source/core/access/accpage.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx
index cc1ee1d38838..b20506a57b93 100644
--- a/sw/source/core/access/accpage.cxx
+++ b/sw/source/core/access/accpage.cxx
@@ -23,6 +23,7 @@
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <comphelper/servicehelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include "accpage.hxx"
#include "access.hrc"
@@ -144,9 +145,7 @@ OUString SwAccessiblePage::getImplementationName( )
sal_Bool SwAccessiblePage::supportsService( const OUString& rServiceName)
throw( RuntimeException )
{
- return rServiceName.equalsAsciiL( sServiceName, sizeof(sServiceName)-1 ) ||
- rServiceName.equalsAsciiL( sAccessibleServiceName,
- sizeof(sAccessibleServiceName)-1 );
+ return cppu::supportsService(this, rServiceName);
}
Sequence<OUString> SwAccessiblePage::getSupportedServiceNames( )