Commit 494be972 authored by Ben Cooksley's avatar Ben Cooksley
Browse files

Some QChar items I missed, and it turns out QStringLiteral can't be used there, so just fromUtf8 it

parent 28fab21e
......@@ -77,7 +77,7 @@ void ProcessesLocal::Private::readProcStatus(struct kinfo_proc *p, Process *proc
process->setUid(p->ki_ruid);
process->setEgid(p->ki_svgid);
process->setGid(p->ki_rgid);
process->setName(QStringLiteral(p->ki_comm ? p->ki_comm : "????"));
process->setName(QString::fromUtf8(p->ki_comm ? p->ki_comm : "????"));
}
void ProcessesLocal::Private::readProcStat(struct kinfo_proc *p, Process *ps)
......@@ -136,7 +136,7 @@ bool ProcessesLocal::Private::readProcCmdline(long pid, Process *process)
QString command = QString::fromUtf8(buf);
//cmdline seperates parameters with the NULL character
command = command.replace('\0', ' ');
command = command.replace(QLatin1Char('\0'), QLatin1Char(' '));
process->setCommand(command.trimmed());
return true;
......
Supports Markdown
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