diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-03 14:55:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-03 18:38:56 +0200 |
commit | 740353bc31583d9e8ad77a2b2289a204466ccf9e (patch) | |
tree | bb1b053cd1d79ad9e5d656b61d7febd7b693a15c /basctl/source/basicide/baside3.cxx | |
parent | 86d2d8e03763e97a067b1dca8cb8d9829064abdc (diff) |
loplugin:ostr in basctl
Change-Id: I59c25d52d8f59ff1b7ab498041c2888b8e718f64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide/baside3.cxx')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 4a6b1dfbfb5c..ea4fcb4c33de 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -250,7 +250,7 @@ void DialogWindow::GetState( SfxItemSet& rSet ) if ( xModel.is() ) { Reference< lang::XServiceInfo > xServiceInfo ( xModel, UNO_QUERY ); - if ( xServiceInfo.is() && xServiceInfo->supportsService( "com.sun.star.sheet.SpreadsheetDocument" ) ) + if ( xServiceInfo.is() && xServiceInfo->supportsService( u"com.sun.star.sheet.SpreadsheetDocument"_ustr ) ) bIsCalc = true; } } @@ -610,7 +610,7 @@ void DialogWindow::SaveDialog() xFP->setDefaultName( GetName() ); OUString aDialogStr(IDEResId(RID_STR_STDDIALOGNAME)); - xFP->appendFilter( aDialogStr, "*.xdl" ); + xFP->appendFilter( aDialogStr, u"*.xdl"_ustr ); xFP->appendFilter( IDEResId(RID_STR_FILTER_ALLFILES), FilterMask_All ); xFP->setCurrentFilter( aDialogStr ); @@ -652,7 +652,7 @@ void DialogWindow::SaveDialog() { try { - Any aResourceResolver = xDialogModelPropSet->getPropertyValue( "ResourceResolver" ); + Any aResourceResolver = xDialogModelPropSet->getPropertyValue( u"ResourceResolver"_ustr ); aResourceResolver >>= xStringResourceResolver; } catch(const beans::UnknownPropertyException& ) @@ -792,7 +792,7 @@ bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const Reference<XFilePicker3> xFP = aDlg.GetFilePicker(); OUString aDialogStr(IDEResId(RID_STR_STDDIALOGNAME)); - xFP->appendFilter( aDialogStr, "*.xdl" ); + xFP->appendFilter( aDialogStr, u"*.xdl"_ustr ); xFP->appendFilter( IDEResId(RID_STR_FILTER_ALLFILES), FilterMask_All ); xFP->setCurrentFilter( aDialogStr ); @@ -810,7 +810,7 @@ bool implImportDialog(weld::Window* pWin, const ScriptDocument& rDocument, const { // create dialog model Reference< container::XNameContainer > xDialogModel( - xContext->getServiceManager()->createInstanceWithContext("com.sun.star.awt.UnoControlDialogModel", xContext), + xContext->getServiceManager()->createInstanceWithContext(u"com.sun.star.awt.UnoControlDialogModel"_ustr, xContext), UNO_QUERY_THROW ); Reference< XSimpleFileAccess3 > xSFI( SimpleFileAccess::create(xContext) ); |