summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbawindow.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-22 12:46:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-23 08:37:41 +0200
commitdddba389b79647f69f447e576cf7e880be5661c6 (patch)
tree10d8da4fb55cf603a70229abddc460b0646ed237 /sw/source/ui/vba/vbawindow.cxx
parentb1f4a39a326bcaf06068914c03c3dea6f9aeebd8 (diff)
loplugin:ostr in sw/../vba
Change-Id: I73491b481fb82785a21f7239fff62f812dd7440c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167953 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/vba/vbawindow.cxx')
-rw-r--r--sw/source/ui/vba/vbawindow.cxx12
1 files changed, 6 insertions, 6 deletions
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;
}