summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unosect.cxx')
-rw-r--r--sw/source/core/unocore/unosect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 4dc90b8099b3..338c37666217 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -1774,20 +1774,20 @@ static char const*const g_ServicesTextSection[] =
"com.sun.star.document.LinkTarget",
};
-static const size_t g_nServicesTextSection(SAL_N_ELEMENTS(g_ServicesTextSection));
-
sal_Bool SAL_CALL SwXTextSection::supportsService(const OUString& rServiceName)
throw (uno::RuntimeException)
{
return ::sw::SupportsServiceImpl(
- g_nServicesTextSection, g_ServicesTextSection, rServiceName);
+ SAL_N_ELEMENTS(g_ServicesTextSection),
+ g_ServicesTextSection, rServiceName);
}
uno::Sequence< OUString > SAL_CALL
SwXTextSection::getSupportedServiceNames() throw (uno::RuntimeException)
{
return ::sw::GetSupportedServiceNamesImpl(
- g_nServicesTextSection, g_ServicesTextSection);
+ SAL_N_ELEMENTS(g_ServicesTextSection),
+ g_ServicesTextSection);
}
// MetadatableMixin