summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-29 12:20:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-04 15:29:54 +0100
commitc34e8bd71384326184baac7dea31f7ddf9bae6bc (patch)
tree0914b24023030781b3a74a768be9df4d2873b4b9 /vcl
parenta1cdde17aa27902ee162d5b40860f05c592c4de8 (diff)
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svmain.cxx2
-rw-r--r--vcl/source/filter/graphicfilter.cxx2
-rw-r--r--vcl/unx/generic/app/wmadaptor.cxx4
3 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 4c9fbbe06f48..eaba51522b76 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -333,7 +333,7 @@ bool InitVCL()
//force that in as $LANGUAGE. That way we can get gtk to render widgets RTL
//if we have a RTL UI in an otherwise LTR locale and get gettext using externals (e.g. python)
//to match their translations to our preferred UI language
- OUString aLocaleString(SvtSysLocaleOptions().GetRealUILanguageTag().getGlibcLocaleString(".UTF-8"));
+ OUString aLocaleString(SvtSysLocaleOptions().GetRealUILanguageTag().getGlibcLocaleString(u".UTF-8"));
if (!aLocaleString.isEmpty())
{
MsLangId::getSystemUILanguage(); //call this now to pin what the system UI really was
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 503776986f70..5dc3d8b0f10c 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -585,7 +585,7 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
return aGraphic;
}
-static OUString ImpCreateFullFilterPath( const OUString& rPath, const OUString& rFilterName )
+static OUString ImpCreateFullFilterPath( const OUString& rPath, std::u16string_view rFilterName )
{
OUString aPathURL;
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index ec853e26accc..9a6142314328 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -19,6 +19,7 @@
#include <string.h>
#include <stdlib.h>
+#include <string_view>
#include <i18nlangtag/languagetag.hxx>
#include <rtl/locale.h>
@@ -973,7 +974,8 @@ void WMAdaptor::setWMName( X11SalFrame* pFrame, const OUString& rWMName ) const
osl_getProcessLocale( &pLocale );
if( pLocale )
{
- OUString aLocaleString( LanguageTag( *pLocale).getGlibcLocaleString( OUString()));
+ OUString aLocaleString(
+ LanguageTag( *pLocale).getGlibcLocaleString( std::u16string_view()));
aWMLocale = OUStringToOString( aLocaleString, RTL_TEXTENCODING_ISO_8859_1 );
}
else