From eaf071397a1ff30536616f2ed76051f77fd38ed6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 7 Apr 2023 10:02:18 +0200 Subject: new loplugin:unnecessarygetstr which prevents constructing unnecessary temporaries via getStr() Change-Id: I9ca70893a10e954b5ee0e6ad6098660ee24c2bef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150170 Tested-by: Jenkins Reviewed-by: Noel Grandin --- fpicker/source/office/commonpicker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpicker') diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx index 29ae5d08b6c9..8b7f2827df4a 100644 --- a/fpicker/source/office/commonpicker.cxx +++ b/fpicker/source/office/commonpicker.cxx @@ -452,7 +452,7 @@ namespace svt DBG_ASSERT( bKnownSetting, OString( "OCommonPicker::initialize: unknown argument \"" - + OString(sSettingName.getStr(), sSettingName.getLength(), osl_getThreadTextEncoding()) + + OUStringToOString(sSettingName, osl_getThreadTextEncoding()) + "\"!").getStr() ); } } -- cgit