~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to tools/qdoc3/codemarker.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-08-01 11:30:30 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20080801113030-c33y1z0l21t6cj5r
Tags: upstream-4.4.1
ImportĀ upstreamĀ versionĀ 4.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
{
114
114
    CodeMarker *defaultMarker = markerForLanguage( defaultLang );
115
115
    int dot = -1;
116
 
    while ((dot = fileName.indexOf(QLatin1Char('.'), dot + 1)) != -1) {
 
116
    while ((dot = fileName.lastIndexOf(QLatin1Char('.'), dot)) != -1) {
117
117
        QString ext = fileName.mid( dot + 1 );
118
118
        if ( defaultMarker != 0 && defaultMarker->recognizeExtension(ext) )
119
119
            return defaultMarker;
123
123
                return *m;
124
124
            ++m;
125
125
        }
 
126
        --dot;
126
127
    }
127
128
    return defaultMarker;
128
129
}