Skip to content

Commit

Permalink
remove temp variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elviosak authored and palinek committed Mar 9, 2022
1 parent 003d337 commit 465d6cd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions plugin-statusnotifier/statusnotifierproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,12 @@ void StatusNotifierProxy::unregisterWidget(StatusNotifierWidget */*widget*/)

void StatusNotifierProxy::onStatusNotifierItemRegistered(const QString &service)
{
QString temp(service);
mServices.append(temp);
emit StatusNotifierItemRegistered(temp);
mServices.append(service);
emit StatusNotifierItemRegistered(service);
}

void StatusNotifierProxy::onStatusNotifierItemUnregistered(const QString &service)
{
QString temp(service);
mServices.removeAll(temp);
emit StatusNotifierItemUnregistered(temp);
mServices.removeAll(service);
emit StatusNotifierItemUnregistered(service);
}

0 comments on commit 465d6cd

Please sign in to comment.