From 5a602ed852b872f87893169062ec47041e013fb9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 May 2024 09:13:38 +0200 Subject: loplugin:ostr in sc/.../vba Change-Id: Ifdf0ebba617432f49e2c14c8a52c495dc1c6a36a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167853 Reviewed-by: Noel Grandin Tested-by: Jenkins --- sc/source/ui/vba/vbawindow.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/vba/vbawindow.cxx') diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index bd0ebd463500..4608a2a73f02 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -106,14 +106,14 @@ public: { ScModelObj* pModel = static_cast< ScModelObj* >( xModel.get() ); if ( !pModel ) - throw uno::RuntimeException("Cannot obtain current document" ); + throw uno::RuntimeException(u"Cannot obtain current document"_ustr ); m_xModel = pModel; ScDocShell* pDocShell = static_cast(pModel->GetEmbeddedObject()); if ( !pDocShell ) - throw uno::RuntimeException("Cannot obtain docshell" ); + throw uno::RuntimeException(u"Cannot obtain docshell"_ustr ); ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel ); if ( !pViewShell ) - throw uno::RuntimeException("Cannot obtain view shell" ); + throw uno::RuntimeException(u"Cannot obtain view shell"_ustr ); SCTAB nTabCount = pDocShell->GetDocument().GetTableCount(); SCTAB nIndex = 0; @@ -411,7 +411,7 @@ ScVbaWindow::setWindowState( const uno::Any& _windowstate ) else if (nwindowState == xlNormal) pWork -> Restore(); else - throw uno::RuntimeException("Invalid Parameter" ); + throw uno::RuntimeException(u"Invalid Parameter"_ustr ); } } @@ -846,7 +846,7 @@ void SAL_CALL ScVbaWindow::setTabRatio( double fRatio ) OUString ScVbaWindow::getServiceImplName() { - return "ScVbaWindow"; + return u"ScVbaWindow"_ustr; } uno::Sequence< OUString > @@ -854,7 +854,7 @@ ScVbaWindow::getServiceNames() { static uno::Sequence< OUString > const aServiceNames { - "ooo.vba.excel.Window" + u"ooo.vba.excel.Window"_ustr }; return aServiceNames; } -- cgit