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/tools/qdoc3/qscodeparser.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    152152    qsTre = tree;
    153153
    154     FILE *in = fopen(QFile::encodeName(filePath), "r");
    155     if (in == 0) {
     154    QFile in(filePath);
     155    if (!in.open(QIODevice::ReadOnly)) {
    156156        location.error(tr("Cannot open Qt Script class list '%1'")
    157157                        .arg(filePath));
     
    176176        tok = fileTokenizer.getToken();
    177177    }
    178     fclose(in);
     178    in.close();
    179179}
    180180
Note: See TracChangeset for help on using the changeset viewer.