diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-06-04 09:52:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-06-04 14:34:45 +0200 |
commit | 87e8e79da0769fbc37a274049d31da07359713f4 (patch) | |
tree | 1fe577591c2258847636f3c7b694e17e575e5a53 /sw/source/uibase/shells/drwtxtsh.cxx | |
parent | 199ffecd9586d3a8c3365bdbc979c93600f25899 (diff) |
loplugin:ostr in sw/.../shells
Change-Id: Ie8d62b127cfa521d28dbd26073e4d6d89dfdcdf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168396
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/shells/drwtxtsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/drwtxtsh.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index 784ff5b82804..fb5191131e5a 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -80,7 +80,7 @@ SFX_IMPL_INTERFACE(SwDrawTextShell, SfxShell) void SwDrawTextShell::InitInterface_Impl() { - GetStaticInterface()->RegisterPopupMenu("drawtext"); + GetStaticInterface()->RegisterPopupMenu(u"drawtext"_ustr); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Draw_Text_Toolbox_Sw); @@ -126,7 +126,7 @@ SwDrawTextShell::SwDrawTextShell(SwView &rV) : // Initialize and show cursor to start editing. Init(); - SetName("ObjectText"); + SetName(u"ObjectText"_ustr); SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::DrawText)); } @@ -293,7 +293,7 @@ void SwDrawTextShell::ExecDrawLingu(SfxRequest const &rReq) return; Reference<ui::dialogs::XExecutableDialog> xDialog( - xMCF->createInstanceWithContext("com.sun.star.linguistic2.ChineseTranslationDialog", xContext), UNO_QUERY); + xMCF->createInstanceWithContext(u"com.sun.star.linguistic2.ChineseTranslationDialog"_ustr, xContext), UNO_QUERY); Reference<lang::XInitialization> xInit(xDialog, UNO_QUERY); @@ -320,9 +320,9 @@ void SwDrawTextShell::ExecDrawLingu(SfxRequest const &rReq) { try { - xPropertySet->getPropertyValue("IsDirectionToSimplified") >>= bToSimplified; - xPropertySet->getPropertyValue("IsUseCharacterVariants") >>= bUseVariants; - xPropertySet->getPropertyValue("IsTranslateCommonTerms") >>= bCommonTerms; + xPropertySet->getPropertyValue(u"IsDirectionToSimplified"_ustr) >>= bToSimplified; + xPropertySet->getPropertyValue(u"IsUseCharacterVariants"_ustr) >>= bUseVariants; + xPropertySet->getPropertyValue(u"IsTranslateCommonTerms"_ustr) >>= bCommonTerms; } catch (const Exception&) { |