diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unotext.cxx | 3 | ||||
-rw-r--r-- | editeng/source/uno/unotext2.cxx | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 86a2c8062077..d4a3364f44fa 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -52,6 +52,7 @@ #include <initializer_list> #include <memory> +#include <string_view> using namespace ::cppu; using namespace ::com::sun::star; @@ -2160,7 +2161,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextBase::getSupportedServiceNames_Stat { return comphelper::concatSequences( SvxUnoTextRangeBase::getSupportedServiceNames_Static(), - std::initializer_list<OUStringLiteral>{ u"com.sun.star.text.Text" }); + std::initializer_list<std::u16string_view>{ u"com.sun.star.text.Text" }); } namespace diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx index a4573057df65..8aa040c97637 100644 --- a/editeng/source/uno/unotext2.cxx +++ b/editeng/source/uno/unotext2.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <initializer_list> +#include <string_view> #include <o3tl/safeint.hxx> #include <vcl/svapp.hxx> @@ -365,7 +366,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextContent::getSupportedServiceNames() { return comphelper::concatSequences( SvxUnoTextRangeBase::getSupportedServiceNames(), - std::initializer_list<OUStringLiteral>{ u"com.sun.star.style.ParagraphProperties", + std::initializer_list<std::u16string_view>{ u"com.sun.star.style.ParagraphProperties", u"com.sun.star.style.ParagraphPropertiesComplex", u"com.sun.star.style.ParagraphPropertiesAsian", u"com.sun.star.text.TextContent", @@ -644,7 +645,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextCursor::getSupportedServiceNames() { return comphelper::concatSequences( SvxUnoTextRangeBase::getSupportedServiceNames(), - std::initializer_list<OUStringLiteral>{ u"com.sun.star.style.ParagraphProperties", + std::initializer_list<std::u16string_view>{ u"com.sun.star.style.ParagraphProperties", u"com.sun.star.style.ParagraphPropertiesComplex", u"com.sun.star.style.ParagraphPropertiesAsian", u"com.sun.star.text.TextCursor" }); |