~sil2100/unity-mir/no_change_rebuild

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/proc_info.cpp

  • Committer: CI bot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2014-03-17 17:44:24 UTC
  • mfrom: (197.1.1 unity-mir)
  • Revision ID: ps-jenkins@lists.canonical.com-20140317174424-nezs9mo6xeyhtjr8
Using str.contains to find out if the cmdline is from a QtWebProcess process 

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    return m_command.startsWith(prefix);
42
42
}
43
43
 
 
44
bool ProcInfo::CommandLine::contains(char const* prefix) const {
 
45
    return m_command.contains(prefix);
 
46
}
 
47
 
44
48
boost::optional<QString> ProcInfo::CommandLine::getParameter(const char* name) const {
45
49
    QString pattern = QRegularExpression::escape(name) + "(\\S+)";
46
50
    QRegularExpression regExp(pattern);