~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/libs/utils/unixutils.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        if (c == QLatin1Char('%') && i < pre.size()-1) {
76
76
            c = pre.at(++i);
77
77
            QString s;
78
 
            if (c == QLatin1Char('d'))
 
78
            if (c == QLatin1Char('d')) {
79
79
                s = QLatin1Char('"') + QFileInfo(file).path() + QLatin1Char('"');
80
 
            else if (c == QLatin1Char('f'))
 
80
            } else if (c == QLatin1Char('f')) {
81
81
                s = QLatin1Char('"') + file + QLatin1Char('"');
82
 
            else if (c == QLatin1Char('n'))
 
82
            } else if (c == QLatin1Char('n')) {
83
83
                s = QLatin1Char('"') + QFileInfo(file).fileName() + QLatin1Char('"');
84
 
            else if (c == QLatin1Char('%'))
 
84
            } else if (c == QLatin1Char('%')) {
85
85
                s = c;
86
 
            else {
 
86
            } else {
87
87
                s = QLatin1Char('%');
88
88
                s += c;
89
89
            }