mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kinit: let the compiler optimize-out the passed value
what I did in b4ec5b6a
wasn't exactly perfect
This commit is contained in:
parent
8718369cb2
commit
a7abfa0954
1 changed files with 2 additions and 1 deletions
|
@ -782,9 +782,10 @@ KLauncher::start_service(KService::Ptr service, const QStringList &_urls,
|
|||
// application.
|
||||
foreach(const QString it, urls) {
|
||||
QByteArray startup_id2 = startup_id;
|
||||
const QStringList singleUrl(it);
|
||||
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, QStringList(it), envs, startup_id2, true, false, msg);
|
||||
start_service( service, singleUrl, envs, startup_id2, true, false, msg);
|
||||
}
|
||||
QString firstURL = *(urls.begin());
|
||||
urls.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue