Commit 70262712 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ref

parent 1dea0ea8
......@@ -491,7 +491,7 @@ void Process::setParent(Process* parent)
d->parent = parent;
}
void Process::setLogin(QString login)
void Process::setLogin(const QString &login)
{
if(d->login == login) return;
d->login = login;
......
......@@ -59,7 +59,7 @@ public:
unsigned long& numChildren() const; // REF, make non-ref later!
QString login() const;
void setLogin(QString login); ///< The user login name. Only used for processes on remote machines. Otherwise use uid to get the name
void setLogin(const QString &login); ///< The user login name. Only used for processes on remote machines. Otherwise use uid to get the name
qlonglong uid() const;
void setUid(qlonglong uid); ///< The user id that the process is running as
......
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