Kaydet (Commit) 722c6752 authored tarafından Miklos Vajna's avatar Miklos Vajna

SwXTextDefaults: use comphelper/stlunosequence.hxx

Change-Id: I4bf0214737c3f37eb4cf514f58e66c72617f857c
üst 696dd4d2
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <comphelper/stlunosequence.hxx>
#include <SwXTextDefaults.hxx> #include <SwXTextDefaults.hxx>
#include <SwStyleNameMapper.hxx> #include <SwStyleNameMapper.hxx>
...@@ -259,13 +260,8 @@ rtl::OUString SAL_CALL SwXTextDefaults::getImplementationName( ) ...@@ -259,13 +260,8 @@ rtl::OUString SAL_CALL SwXTextDefaults::getImplementationName( )
sal_Bool SAL_CALL SwXTextDefaults::supportsService( const ::rtl::OUString& rServiceName ) sal_Bool SAL_CALL SwXTextDefaults::supportsService( const ::rtl::OUString& rServiceName )
throw (RuntimeException) throw (RuntimeException)
{ {
return rServiceName == "com.sun.star.text.Defaults" || uno::Sequence< ::rtl::OUString > aSeq(getSupportedServiceNames());
rServiceName == "com.sun.star.style.CharacterProperties" || return std::find(comphelper::stl_begin(aSeq), comphelper::stl_end(aSeq), rServiceName) != comphelper::stl_end(aSeq);
rServiceName == "com.sun.star.style.CharacterPropertiesAsian" ||
rServiceName == "com.sun.star.style.CharacterPropertiesComplex" ||
rServiceName == "com.sun.star.style.ParagraphProperties" ||
rServiceName == "com.sun.star.style.ParagraphPropertiesAsian" ||
rServiceName == "com.sun.star.style.ParagraphPropertiesComplex";
} }
......
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