Kaydet (Commit) 6a29d733 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Stephan Bergmann

Treat OOO_VENDOR as (non-Unicode) plain char string

Fixes the loplugin:stringconstant complains when using a unicode
vendor name.

Change-Id: Ib15e558585fe388f734da469e728909a48686ef0
Co-authored-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/47278Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 834cebd1
......@@ -9,6 +9,7 @@
#include <comphelper/sequence.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <o3tl/string_view.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/System.hxx>
#include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
......@@ -125,7 +126,7 @@ OUString getInstalledLocaleForSystemUILanguage(const css::uno::Sequence<OUString
OUString install = getInstalledLocaleForLanguage(comphelper::containerToSequence(aAvailable), wantedLocale);
if (!install.isEmpty() && install != "en-US")
{
OUString sVendor(OOO_VENDOR);
o3tl::string_view sVendor(OOO_VENDOR);
if (sVendor == "Red Hat, Inc." || sVendor == "The Fedora Project")
{
// langpack is the typical Fedora/RHEL naming convention
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment