Commit 6469bcc4 authored by Rafael Sadowski's avatar Rafael Sadowski

fix compile: calling a private constructor of class 'QString'

Fix build with Qt 5.13 and LLVM10.
parent fc35d834
......@@ -703,12 +703,12 @@ private:
return false;
}
setName(kInfoProc->p_comm);
setName(QString::fromUtf8(kInfoProc->p_comm));
setPid(kInfoProc->p_pid);
setParentPid(kInfoProc->p_ppid);
setForegroundPid(kInfoProc->p_tpgid);
setUserId(kInfoProc->p_uid);
setUserName(kInfoProc->p_login);
setUserName(QString::fromUtf8(kInfoProc->p_login));
free(kInfoProc);
return true;
......@@ -757,7 +757,7 @@ private:
}
for (char **p = argv; *p != NULL; p++) {
addArgument(QString(*p));
addArgument(QString::fromUtf8(*p));
}
free(argv);
return true;
......
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