summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-19 21:20:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-20 07:26:11 +0100
commitf94987039b0b08db878b1c444c28b302d6723fac (patch)
tree9d180a11c49dd43092bfdf227de7b8f27ce658d9 /extensions/source
parentb5da85150d0b4ab693616b0f6af613842b7acde3 (diff)
Extended loplugin:ostr: extensions
Change-Id: I0c70fc1d42031a5a6ebd900cd20b1e7e40d9352d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159703 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/scanner/sanedlg.cxx8
-rw-r--r--extensions/source/update/check/download.cxx2
-rw-r--r--extensions/source/update/check/updatecheck.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index f186d6c5ed27..b4f5e9a36cb7 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -1283,8 +1283,8 @@ bool SaneDlg::LoadState()
if( ! aConfig.HasGroup( "SANE" ) )
return false;
- aConfig.SetGroup( "SANE" );
- OString aString = aConfig.ReadKey( "SO_LastSaneDevice" );
+ aConfig.SetGroup( "SANE"_ostr );
+ OString aString = aConfig.ReadKey( "SO_LastSaneDevice"_ostr );
for( i = 0; i < Sane::CountDevices() && aString != OUStringToOString(Sane::GetName(i), osl_getThreadTextEncoding()); i++ ) ;
if( i == Sane::CountDevices() )
return false;
@@ -1356,8 +1356,8 @@ void SaneDlg::SaveState()
Config aConfig( aFileName );
aConfig.DeleteGroup( "SANE" );
- aConfig.SetGroup( "SANE" );
- aConfig.WriteKey( "SO_LastSANEDevice",
+ aConfig.SetGroup( "SANE"_ostr );
+ aConfig.WriteKey( "SO_LastSANEDevice"_ostr,
OUStringToOString(mxDeviceBox->get_active_text(), RTL_TEXTENCODING_UTF8) );
static char const* pSaveOptions[] = {
diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx
index ab5402c0ae42..f96d6ecd495e 100644
--- a/extensions/source/update/check/download.cxx
+++ b/extensions/source/update/check/download.cxx
@@ -293,7 +293,7 @@ static bool curl_run(std::u16string_view rURL, OutData& out, const OString& aPro
// Only report errors when not stopped
else
{
- OString aMessage("Unknown error");
+ OString aMessage("Unknown error"_ostr);
const char * error_message = curl_easy_strerror(cc);
if( nullptr != error_message )
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index 395d90444ed6..26b83f9d83f7 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -1407,7 +1407,7 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL)
rc = aFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Create );
if ( rc != osl::FileBase::E_None ) return false;
- OString aLineBuf("[InternetShortcut]\r\n");
+ OString aLineBuf("[InternetShortcut]\r\n"_ostr);
sal_uInt64 nWritten = 0;
OUString aURL( rURL );