Changeset 423
- Timestamp:
- Dec 14, 2009, 8:18:13 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/os2/xsystray/xsystray_api.c
r285 r423 19 19 */ 20 20 21 21 22 #define INCL_DOSERRORS 22 23 #define INCL_DOSPROCESS -
trunk/src/corelib/io/qprocess_os2.cpp
r254 r423 263 263 if (procKey > MaxProcKey) { 264 264 // oops, no more free keys! 265 process->setErrorString(Q String("Internal error: Too many processes"));265 process->setErrorString(QString("Internal error: Too many processes")); 266 266 return InvalidProcKey; 267 267 } … … 752 752 // elements in front of the array for a posssible command processor call 753 753 // insertion. 754 c har **argvBase = newchar *[arguments.count() + 2 + 3];754 c char *[arguments.count() + 2 + 3]; 755 755 756 756 // Don't use leading elements by default 757 c har **argv = argvBase + 3;757 char **argv = argvBase + 3; 758 758 // Set the final argument to 0 759 759 argv[arguments.count() + 1] = 0; … … 828 828 QFileInfo programInfo(program); 829 829 QStringList knownExts; 830 knownExts << "exe" << "cmd" << "bat"; // in order of CMD.EXE's precedence 830 knownExts << QLatin1String("exe") << QLatin1String("cmd") 831 << QLatin1String("bat"); // in order of CMD.EXE's precedence 831 832 QByteArray path = 832 833 QFile::encodeName(QDir::toNativeSeparators(programInfo.path())); … … 891 892 if (arc == NO_ERROR) { 892 893 QString path = QFile::decodeName(libPathBuf); 893 paths = path.split( ';', QString::SkipEmptyParts);894 paths = path.split(, QString::SkipEmptyParts); 894 895 if (paths.contains(fullPath, Qt::CaseInsensitive)) { 895 896 #if defined(QPROCESS_DEBUG) … … 909 910 } 910 911 911 c har *programReal = fullProgramName.data();912 c har **argvReal = argv;912 char *programReal = fullProgramName.data(); 913 char **argvReal = argv; 913 914 914 915 if (mode == P_DETACH) { … … 961 962 #endif 962 963 963 // finally, start the thing 964 pid = spawnve(mode, programReal, argvReal, envv); 964 // finally, start the thing (note that due to the incorrect definiton of 965 // spawnve we have to perform a pointless cast; the devinition for the 966 // 3rd and 4th arg should be: char const * const *) 967 pid = spawnve(mode, programReal, const_cast<char * const *>(argvReal), envv); 965 968 966 969 #if defined(QPROCESS_DEBUG) … … 1117 1120 processError = QProcess::FailedToStart; 1118 1121 if (arc != NO_ERROR) { 1119 // handle duplication faile d1122 // handle duplication faile 1120 1123 q->setErrorString(QProcess::tr("Process failed to start: %1") 1121 .arg(QString("DOS error %1").arg(arc))); 1124 .arg(QString(QLatin1String("DOS error %1")) 1125 .arg(arc))); 1122 1126 } else { 1123 1127 #if defined (QPROCESS_DEBUG) … … 1125 1129 #endif 1126 1130 q->setErrorString(QProcess::tr("Process failed to start: %1") 1127 .arg(q Printable(qt_error_string(errno))));1131 .arg(q))); 1128 1132 } 1129 1133 emit q->error(processError); -
trunk/src/corelib/plugin/qlibrary_os2.cpp
r75 r423 112 112 .arg(fileName).arg(qt_os2_error_string(rc)); 113 113 if (*errModule != '\0') 114 errorString += QLibrary::tr(" (failed module: %1)").arg(errModule); 114 errorString += QLibrary::tr(" (failed module: %1)") 115 .arg(QFile::decodeName(errModule)); 115 116 return false; 116 117 } -
trunk/src/gui/kernel/qmime_pm.cpp
r347 r423 530 530 QVariant ret; 531 531 532 if (!mimeType.startsWith( "text/plain") &&533 !mimeType.startsWith( "text/html"))532 if (!mimeType.startsWith() && 533 !mimeType.startsWith()) 534 534 return ret; 535 535 if ((format != CF_TEXT && format != CF_TextUnicode && format != CF_TextHtml) || … … 821 821 // prepend the non-standard type with the prefix that makes it comply 822 822 // with the standard 823 mimeToReg = customPrefix + mime + Q Char('\"');823 mimeToReg = customPrefix + mime + QChar('\"'); 824 824 } 825 825 -
trunk/src/gui/text/qfontdatabase_pm.cpp
r373 r423 319 319 QStringList files = fontCache.childGroups(); 320 320 foreach(QString file, files) { 321 file.replace( "|", "/");321 file.replace(); 322 322 knownFontFiles.insert(file, FileData()); 323 323 // note that QFileInfo is empty so the file will be considered as … … 401 401 402 402 // QSettings uses / for splitting into groups, suppress it 403 fileKey.replace( "/", "|");403 fileKey.replace(); 404 404 405 405 QList<FaceData> cachedFaces; … … 613 613 // remove from the both caches 614 614 QString fileKey = it.key(); 615 fileKey.replace( "/", "|");615 fileKey.replace(); 616 616 fontCache.remove(fileKey); 617 617 it = knownFontFiles.erase(it);
Note:
See TracChangeset
for help on using the changeset viewer.