From dddba389b79647f69f447e576cf7e880be5661c6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 May 2024 12:46:02 +0200 Subject: loplugin:ostr in sw/../vba Change-Id: I73491b481fb82785a21f7239fff62f812dd7440c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167953 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/vba/vbaparagraph.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/source/ui/vba/vbaparagraph.cxx') diff --git a/sw/source/ui/vba/vbaparagraph.cxx b/sw/source/ui/vba/vbaparagraph.cxx index 19a312795910..51eabcc612fd 100644 --- a/sw/source/ui/vba/vbaparagraph.cxx +++ b/sw/source/ui/vba/vbaparagraph.cxx @@ -57,7 +57,7 @@ SwVbaParagraph::setStyle( const uno::Any& style ) OUString SwVbaParagraph::getServiceImplName() { - return "SwVbaParagraph"; + return u"SwVbaParagraph"_ustr; } uno::Sequence< OUString > @@ -65,7 +65,7 @@ SwVbaParagraph::getServiceNames() { static uno::Sequence< OUString > const aServiceNames { - "ooo.vba.word.Paragraph" + u"ooo.vba.word.Paragraph"_ustr }; return aServiceNames; } @@ -101,7 +101,7 @@ public: while( xParEnum->hasMoreElements() ) { uno::Reference< lang::XServiceInfo > xServiceInfo( xParEnum->nextElement(), uno::UNO_QUERY_THROW ); - if( xServiceInfo->supportsService("com.sun.star.text.Paragraph") ) + if( xServiceInfo->supportsService(u"com.sun.star.text.Paragraph"_ustr) ) { nCount++; } @@ -117,7 +117,7 @@ public: while( xParEnum->hasMoreElements() ) { uno::Reference< lang::XServiceInfo > xServiceInfo( xParEnum->nextElement(), uno::UNO_QUERY_THROW ); - if( xServiceInfo->supportsService("com.sun.star.text.Paragraph") ) + if( xServiceInfo->supportsService(u"com.sun.star.text.Paragraph"_ustr) ) { if( Index == nCount ) return uno::Any( xServiceInfo ); @@ -163,7 +163,7 @@ SwVbaParagraphs::createCollectionObject( const css::uno::Any& aSource ) OUString SwVbaParagraphs::getServiceImplName() { - return "SwVbaParagraphs"; + return u"SwVbaParagraphs"_ustr; } css::uno::Sequence @@ -171,7 +171,7 @@ SwVbaParagraphs::getServiceNames() { static uno::Sequence< OUString > const sNames { - "ooo.vba.word.Paragraphs" + u"ooo.vba.word.Paragraphs"_ustr }; return sNames; } -- cgit