Changeset 172 for trunk/src/corelib/io
- Timestamp:
- Sep 9, 2009, 1:54:31 AM (16 years ago)
- Location:
- trunk/src/corelib/io
- Files:
-
- 7 edited
-
qdir.cpp (modified) (7 diffs)
-
qfile.cpp (modified) (2 diffs)
-
qfileinfo.cpp (modified) (1 diff)
-
qfsfileengine.cpp (modified) (1 diff)
-
qiodevice.cpp (modified) (1 diff)
-
qtextstream.cpp (modified) (2 diffs)
-
qurl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/qdir.cpp
r2 r172 62 62 static QString driveSpec(const QString &path) 63 63 { 64 #if def Q_OS_WIN64 #if 65 65 if (path.size() < 2) 66 66 return QString(); … … 147 147 if ((path.endsWith(QLatin1Char('/')) || path.endsWith(QLatin1Char('\\'))) 148 148 && path.length() > 1) { 149 #if def Q_OS_WIN149 #if 150 150 if (!(path.length() == 3 && path.at(1) == QLatin1Char(':'))) 151 151 #endif … … 780 780 } 781 781 782 #if def Q_OS_WIN782 #if 783 783 if (fileDrive.toLower() != dirDrive.toLower() 784 784 || (file.startsWith(QLatin1String("//")) … … 799 799 int i = 0; 800 800 while (i < dirElts.size() && i < fileElts.size() && 801 #if def Q_OS_WIN801 #if 802 802 dirElts.at(i).toLower() == fileElts.at(i).toLower()) 803 803 #else … … 2075 2075 if(p[i] == QLatin1Char('/')) { 2076 2076 while(i < len-1 && p[i+1] == QLatin1Char('/')) { 2077 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) //allow unc paths2077 #if ) //allow unc paths 2078 2078 if(!i) 2079 2079 break; … … 2135 2135 } 2136 2136 } else if(last != -1 && iwrite - last == 1) { 2137 #if def Q_OS_WIN2137 #if 2138 2138 eaten = (iwrite > 2); 2139 2139 #else … … 2233 2233 \snippet doc/src/snippets/code/src_corelib_io_qdir.cpp 13 2234 2234 2235 If the file name contains characters that cannot be part of a valid C++ function name 2235 If the file name contains characters that cannot be part of a valid C++ function name 2236 2236 (such as '-'), they have to be replaced by the underscore character ('_'). 2237 2237 -
trunk/src/corelib/io/qfile.cpp
r2 r172 1524 1524 int writeBufferSize = writeBuffer.size(); 1525 1525 if ((openMode & QIODevice::Unbuffered) || writeBufferSize + 1 >= QFILE_WRITEBUFFER_SIZE 1526 #if def Q_OS_WIN1526 #if 1527 1527 || ((openMode & QIODevice::Text) && c == '\n' && writeBufferSize + 2 >= QFILE_WRITEBUFFER_SIZE) 1528 1528 #endif … … 1547 1547 1548 1548 int len = 1; 1549 #if def Q_OS_WIN1549 #if 1550 1550 if ((openMode & QIODevice::Text) && c == '\n') { 1551 1551 ++len; -
trunk/src/corelib/io/qfileinfo.cpp
r2 r172 171 171 break; 172 172 }; 173 #if def Q_OS_UNIX173 #if 174 174 return QT_ACCESS(QFile::encodeName(data->fileName).data(), mode) == 0; 175 175 #endif -
trunk/src/corelib/io/qfsfileengine.cpp
r2 r172 146 146 known.insert(path); 147 147 do { 148 #if def Q_OS_WIN148 #if 149 149 // UNC, skip past the first two elements 150 150 if (separatorPos == 0 && tmpPath.startsWith(QLatin1String("//"))) -
trunk/src/corelib/io/qiodevice.cpp
r2 r172 1213 1213 return qint64(-1); 1214 1214 1215 #if def Q_OS_WIN1215 #if 1216 1216 if (d->openMode & Text) { 1217 1217 const char *endOfData = data + maxSize; -
trunk/src/corelib/io/qtextstream.cpp
r2 r172 652 652 return true; 653 653 654 #if defined (Q_OS_WIN)654 #if defined) 655 655 // handle text translation and bypass the Text flag in the device. 656 656 bool textModeEnabled = device->isTextModeEnabled(); … … 685 685 return false; 686 686 687 #if defined (Q_OS_WIN)687 #if defined) 688 688 // replace the text flag 689 689 if (textModeEnabled) -
trunk/src/corelib/io/qurl.cpp
r2 r172 5926 5926 if (fileInfo.isAbsolute()) { 5927 5927 QString absPath = fileInfo.absolutePath(); 5928 #if def Q_OS_WIN5928 #if 5929 5929 if (absPath.size() > 1 && absPath.at(1) == QLatin1Char(':')) 5930 5930 absPath = absPath.mid(2);
Note:
See TracChangeset
for help on using the changeset viewer.
