Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/tools/moc/main.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    362362
    363363    if (autoInclude) {
     364
    364365        int ppos = filename.lastIndexOf('.');
    365         moc.noInclude = (ppos >= 0
    366                          && tolower(filename[ppos + 1]) != 'h'
    367                          && tolower(filename[ppos + 1]) != QDir::separator().toLatin1()
    368                         );
     366        // spos >= -1 && ppos > spos => ppos >= 0
     367        moc.noInclude = (ppos > spos && tolower(filename[ppos + 1]) != 'h');
    369368    }
    370369    if (moc.includeFiles.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.