summaryrefslogtreecommitdiff
path: root/src/utils/langs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/langs.cpp')
-rw-r--r--src/utils/langs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/langs.cpp b/src/utils/langs.cpp
index af05649a9..6a2215d30 100644
--- a/src/utils/langs.cpp
+++ b/src/utils/langs.cpp
@@ -35,7 +35,7 @@ static const char *getLangName()
LangVect getLang()
{
LangVect langs;
- std::string lang = config.getStringValue("lang").c_str();
+ std::string lang = config.getStringValue("lang");
if (lang.empty())
{
const char *const lng = getLangName();
@@ -60,7 +60,7 @@ LangVect getLang()
std::string getLangSimple()
{
- const std::string lang = config.getStringValue("lang").c_str();
+ const std::string lang = config.getStringValue("lang");
if (lang.empty())
{
const char *const lng = getLangName();
@@ -77,7 +77,7 @@ std::string getLangSimple()
std::string getLangShort()
{
- std::string lang = config.getStringValue("lang").c_str();
+ std::string lang = config.getStringValue("lang");
if (lang.empty())
{
const char *const lng = getLangName();