Skip to content

Commit

Permalink
Fix invalid conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Feb 22, 2021
1 parent 887d3dc commit ef3b5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ translator::translator(QObject* parent) :
char* locale = setlocale(LC_ALL, "");
qDebug() << "locale: " << locale;
#ifndef _WIN32
char* basedir = bindtextdomain(PACKAGE, LOCALEDIR);
const char* basedir = bindtextdomain(PACKAGE, LOCALEDIR);
#else
QString localedir = QString(QCoreApplication::applicationDirPath()).append("/locale");
qDebug() << "localedir: " << localedir;
char* basedir = bindtextdomain(PACKAGE, localedir.toLocal8Bit().constData());
const char* basedir = bindtextdomain(PACKAGE, localedir.toLocal8Bit().constData());
#endif
qDebug() << "basedir: " << basedir;

Expand Down

0 comments on commit ef3b5d2

Please sign in to comment.