diff options
author | saturneric <[email protected]> | 2023-03-31 19:14:23 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-03-31 19:14:23 +0000 |
commit | d15c83a1697d3798ed19261d2be617099d33a4ad (patch) | |
tree | d449ca25b8b7d2eb43e6dfe6187113d96876222c /src/ui/GpgFrontendUIInit.cpp | |
parent | fix: solve ui issues in network settings (diff) | |
download | GpgFrontend-d15c83a1697d3798ed19261d2be617099d33a4ad.tar.gz GpgFrontend-d15c83a1697d3798ed19261d2be617099d33a4ad.zip |
fix: solve codacy issues
Diffstat (limited to 'src/ui/GpgFrontendUIInit.cpp')
-rw-r--r-- | src/ui/GpgFrontendUIInit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/GpgFrontendUIInit.cpp b/src/ui/GpgFrontendUIInit.cpp index d363f886..b90493a5 100644 --- a/src/ui/GpgFrontendUIInit.cpp +++ b/src/ui/GpgFrontendUIInit.cpp @@ -270,7 +270,7 @@ void init_locale() { #ifndef WINDOWS if (!lang.empty()) { - std::string lc = lang.empty() ? "" : lang + ".UTF-8"; + std::string lc = lang + ".UTF-8"; // set LC_ALL auto* locale_name = setlocale(LC_ALL, lc.c_str()); @@ -286,7 +286,7 @@ void init_locale() { } #else if (!lang.empty()) { - std::string lc = lang.empty() ? "" : lang; + std::string lc = lang; // set LC_ALL auto* locale_name = setlocale(LC_ALL, lc.c_str()); |