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/vbawindow.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sw/source/ui/vba/vbawindow.cxx') diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx index 9114f4b8d44d..5597f08b48de 100644 --- a/sw/source/ui/vba/vbawindow.cxx +++ b/sw/source/ui/vba/vbawindow.cxx @@ -118,14 +118,14 @@ SwVbaWindow::getCaption() { SwView* pView = word::getView( m_xModel ); if( !pView ) - return ""; + return u""_ustr; uno::Reference< css::beans::XPropertySet > xFrameProps( pView->GetViewFrame().GetFrame().GetFrameInterface()->getController()->getFrame(), uno::UNO_QUERY ); if( !xFrameProps.is() ) - return ""; + return u""_ustr; OUString sTitle; - xFrameProps->getPropertyValue( "Title" ) >>= sTitle; + xFrameProps->getPropertyValue( u"Title"_ustr ) >>= sTitle; return sTitle; } @@ -141,7 +141,7 @@ SwVbaWindow::setCaption( const OUString& _caption ) if( !xFrameProps.is() ) return; - xFrameProps->setPropertyValue( "Title", uno::Any( _caption ) ); + xFrameProps->setPropertyValue( u"Title"_ustr, uno::Any( _caption ) ); } uno::Any SAL_CALL @@ -163,7 +163,7 @@ SwVbaWindow::ActivePane() OUString SwVbaWindow::getServiceImplName() { - return "SwVbaWindow"; + return u"SwVbaWindow"_ustr; } uno::Sequence< OUString > @@ -171,7 +171,7 @@ SwVbaWindow::getServiceNames() { static uno::Sequence< OUString > const aServiceNames { - "ooo.vba.word.Window" + u"ooo.vba.word.Window"_ustr }; return aServiceNames; } -- cgit