diff options
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 26b4a8e72cfc..9e29e3e47b89 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <memory> +#include <string_view> #include <utility> #include <com/sun/star/style/XStyle.hpp> @@ -805,7 +806,7 @@ SdAnimationInfo* SdXShape::GetAnimationInfo( bool bCreate ) const uno::Sequence< OUString > SAL_CALL SdXShape::getSupportedServiceNames() { - std::vector<OUStringLiteral> aAdd{ u"com.sun.star.presentation.Shape", + std::vector<std::u16string_view> aAdd{ u"com.sun.star.presentation.Shape", u"com.sun.star.document.LinkTarget" }; SdrObject* pObj = mpShape->GetSdrObject(); diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 16cca9c0ef34..1c95cb1820a6 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <initializer_list> +#include <string_view> #include <com/sun/star/awt/XBitmap.hpp> #include <com/sun/star/lang/DisposedException.hpp> @@ -1491,7 +1492,7 @@ Sequence< OUString > SAL_CALL SdGenericDrawPage::getSupportedServiceNames() { return comphelper::concatSequences( SvxFmDrawPage::getSupportedServiceNames(), - std::initializer_list<OUStringLiteral>{ u"com.sun.star.drawing.GenericDrawPage", + std::initializer_list<std::u16string_view>{ u"com.sun.star.drawing.GenericDrawPage", u"com.sun.star.document.LinkTarget", u"com.sun.star.document.LinkTargetSupplier" }); } @@ -2192,7 +2193,7 @@ Sequence< OUString > SAL_CALL SdDrawPage::getSupportedServiceNames() throwIfDisposed(); - std::vector<OUStringLiteral> aAdd{ u"com.sun.star.drawing.DrawPage" }; + std::vector<std::u16string_view> aAdd{ u"com.sun.star.drawing.DrawPage" }; if( IsImpressDocument() ) aAdd.emplace_back(u"com.sun.star.presentation.DrawPage"); @@ -2714,7 +2715,7 @@ Sequence< OUString > SAL_CALL SdMasterPage::getSupportedServiceNames() throwIfDisposed(); - std::vector<OUStringLiteral> aAdd{ u"com.sun.star.drawing.MasterPage" }; + std::vector<std::u16string_view> aAdd{ u"com.sun.star.drawing.MasterPage" }; if( SvxFmDrawPage::mpPage && static_cast<SdPage*>(SvxFmDrawPage::mpPage)->GetPageKind() == PageKind::Handout ) aAdd.emplace_back(u"com.sun.star.presentation.HandoutMasterPage"); |