summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbawindow.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-20 09:13:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-20 14:40:36 +0200
commit5a602ed852b872f87893169062ec47041e013fb9 (patch)
tree96ab465383046e1c5456ec44e92c4459eb474feb /sc/source/ui/vba/vbawindow.cxx
parent9312f954b6d636f232a72e35aa2767e450690793 (diff)
loplugin:ostr in sc/.../vba
Change-Id: Ifdf0ebba617432f49e2c14c8a52c495dc1c6a36a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167853 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/vba/vbawindow.cxx')
-rw-r--r--sc/source/ui/vba/vbawindow.cxx12
1 files changed, 6 insertions, 6 deletions
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<ScDocShell*>(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;
}