From f9ffaeaf7b2dce382474dbbb61819a2c039c0bf6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 1 Jun 2024 10:27:57 +0200 Subject: loplugin:ostr in sc/../view Change-Id: I24e84cd42e3f55761fbc1fb8ae9b2cf3fc7bd385 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168309 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/view/cellsh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sc/source/ui/view/cellsh.cxx') diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index d907daf51ac2..ffffb61a5618 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -67,7 +67,7 @@ void ScCellShell::InitInterface_Impl() SfxVisibilityFlags::Standard | SfxVisibilityFlags::Server, ToolbarId::Objectbar_Format); - GetStaticInterface()->RegisterPopupMenu("cell"); + GetStaticInterface()->RegisterPopupMenu(u"cell"_ustr); } ScCellShell::ScCellShell(ScViewData& rData, const VclPtr& frameWin) : @@ -76,7 +76,7 @@ ScCellShell::ScCellShell(ScViewData& rData, const VclPtr& frameWin) bPastePossible(false), pFrameWin(frameWin) { - SetName("Cell"); + SetName(u"Cell"_ustr); SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Cell)); } @@ -883,7 +883,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) // In interpreter may happen via rescheduled Basic if ( rDoc.IsInInterpreter() ) - rSet.Put( SvxStatusItem( SID_TABLE_CELL, "...", StatusCategory::Formula ) ); + rSet.Put( SvxStatusItem( SID_TABLE_CELL, u"..."_ustr, StatusCategory::Formula ) ); else { FormulaError nErrCode = FormulaError::NONE; @@ -998,7 +998,7 @@ void ScCellShell::GetState(SfxItemSet &rSet) rDoc.GetScenarioData( nScTab, aStr, aDummyCol, nFlags ); aList.push_back(aStr); // Protection is sal_True if both Sheet and Scenario are protected - aList.push_back((bSheetProtected && (nFlags & ScScenarioFlags::Protected)) ? OUString("1") : OUString("0")); + aList.push_back((bSheetProtected && (nFlags & ScScenarioFlags::Protected)) ? u"1"_ustr : u"0"_ustr); ++nScTab; } } -- cgit