kinit: minor code shrink

This commit is contained in:
Ivailo Monev 2015-09-05 07:57:08 +00:00
parent cc965d5493
commit b4ec5b6a3d

View file

@ -780,17 +780,11 @@ KLauncher::start_service(KService::Ptr service, const QStringList &_urls,
// For the first file we launch the application in the
// usual way. The reported result is based on this
// application.
QStringList::ConstIterator it = urls.constBegin();
for(++it;
it != urls.constEnd();
++it)
{
QStringList singleUrl;
singleUrl.append(*it);
foreach(const QString it, urls) {
QByteArray startup_id2 = startup_id;
if( !startup_id2.isEmpty() && startup_id2 != "0" )
startup_id2 = "0"; // can't use the same startup_id several times // krazy:exclude=doublequote_chars
start_service( service, singleUrl, envs, startup_id2, true, false, msg);
start_service( service, QStringList(it), envs, startup_id2, true, false, msg);
}
QString firstURL = *(urls.begin());
urls.clear();