Fixed runtime issues reported by SonarQube.

This commit is contained in:
Akshay Joshi
2020-06-16 14:53:40 +05:30
parent 3e00fe2b0f
commit cf64e2c97c
13 changed files with 37 additions and 46 deletions

View File

@@ -58,9 +58,7 @@ static void add_to_path(QString &python_path, QString path, bool prepend=false)
Server::Server(quint16 port, QString key, QString logFileName):
m_port(port),
m_key(key),
m_logFileName(logFileName),
m_wcAppName(Q_NULLPTR),
m_wcPythonHome(Q_NULLPTR)
m_logFileName(logFileName)
{
// Initialise Python
Py_NoSiteFlag=1;
@@ -81,7 +79,7 @@ Server::Server(quint16 port, QString key, QString logFileName):
QString python_path = settings.value("PythonPath").toString();
// Get the application directory
QString app_dir = qApp->applicationDirPath();
QString app_dir = QCoreApplication::applicationDirPath();
QString path_env = qgetenv("PATH");
QString pythonHome;
QStringList path_list;