Tiny optimization

wilder-5.18
Kai Uwe Broulik 6 years ago
parent 147debe375
commit b4b6418ae1
  1. 2
      libnotificationmanager/utils.cpp

@ -62,8 +62,8 @@ QString Utils::desktopEntryFromPid(uint pid)
} }
const QByteArray key = line.left(equalsIdx); const QByteArray key = line.left(equalsIdx);
const QByteArray value = line.mid(equalsIdx + 1);
if (key == bamfDesktopFileHint) { if (key == bamfDesktopFileHint) {
const QByteArray value = line.mid(equalsIdx + 1);
return value; return value;
} }
} }

Loading…
Cancel
Save