Changeset 1084 for trunk/src


Ignore:
Timestamp:
Sep 14, 2011, 8:32:05 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

QDir::cleanPath(): fix a r1042 regression.

It would treat paths like D://some/path as if they were UNC
paths and leave the double slash in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qdir.cpp

    r1042 r1084  
    20562056            while (i < len-1 && p[i+1] == QLatin1Char('/')) {
    20572057#if (defined(Q_OS_WIN) && !defined(Q_OS_WINCE)) || defined(Q_OS_OS2) //allow unc paths
    2058                 if (!i)
     2058                if (i == 0 && drive.isEmpty())
    20592059                    break;
    20602060#endif
Note: See TracChangeset for help on using the changeset viewer.