~mzanetti/unity8/modeswitchwarning

« back to all changes in this revision

Viewing changes to plugins/Unity/Session/dbusunitysessionservice.cpp

  • Committer: Michael Zanetti
  • Date: 2015-10-26 16:47:52 UTC
  • mfrom: (1978.2.32 trunk)
  • Revision ID: michael.zanetti@canonical.com-20151026164752-8yt7ngcng344mb67
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
    if (p) {
293
293
        const QString gecos = QString::fromLocal8Bit(p->pw_gecos);
294
294
        if (!gecos.isEmpty()) {
295
 
            return gecos.split(QLatin1Char(',')).first();
 
295
            const QStringList splitGecos = gecos.split(QLatin1Char(','));
 
296
            return splitGecos.first();
296
297
        }
297
298
    }
298
299