mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kinit: use single variable assignment in KLauncher::processRequestReturn()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
63ceaf9a8e
commit
81c3df9800
1 changed files with 2 additions and 4 deletions
|
@ -348,15 +348,13 @@ void KLauncher::processRequestReturn(int status, const QByteArray &requestData)
|
|||
{
|
||||
if (status == LAUNCHER_CHILD_DIED)
|
||||
{
|
||||
long *request_data;
|
||||
request_data = (long *) requestData.data();
|
||||
long *request_data = (long *) requestData.data();
|
||||
processDied(request_data[0], request_data[1]);
|
||||
return;
|
||||
}
|
||||
if (lastRequest && (status == LAUNCHER_OK))
|
||||
{
|
||||
long *request_data;
|
||||
request_data = (long *) requestData.data();
|
||||
long *request_data = (long *) requestData.data();
|
||||
lastRequest->pid = (pid_t) (*request_data);
|
||||
kDebug(7016).nospace() << lastRequest->name << " (pid " << lastRequest->pid <<
|
||||
") up and running.";
|
||||
|
|
Loading…
Add table
Reference in a new issue