Changeset 423 for trunk/src/gui


Ignore:
Timestamp:
Dec 14, 2009, 8:18:13 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Fixed a bunch of deprecated QString/QChar initializers.

Location:
trunk/src/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qmime_pm.cpp

    r347 r423  
    530530    QVariant ret;
    531531
    532     if (!mimeType.startsWith("text/plain") &&
    533         !mimeType.startsWith("text/html"))
     532    if (!mimeType.startsWith(QLatin1String("text/plain")) &&
     533        !mimeType.startsWith(QLatin1String("text/html")))
    534534        return ret;
    535535    if ((format != CF_TEXT && format != CF_TextUnicode && format != CF_TextHtml) ||
     
    821821        // prepend the non-standard type with the prefix that makes it comply
    822822        // with the standard
    823         mimeToReg = customPrefix + mime + QChar('\"');
     823        mimeToReg = customPrefix + mime + QLatin1Char('\"');
    824824    }
    825825
  • trunk/src/gui/text/qfontdatabase_pm.cpp

    r373 r423  
    319319        QStringList files = fontCache.childGroups();
    320320        foreach(QString file, files) {
    321             file.replace("|", "/");
     321            file.replace(QLatin1Char('|'), QLatin1Char('/'));
    322322            knownFontFiles.insert(file, FileData());
    323323            // note that QFileInfo is empty so the file will be considered as
     
    401401
    402402        // QSettings uses / for splitting into groups, suppress it
    403         fileKey.replace("/", "|");
     403        fileKey.replace(QLatin1Char('/'), QLatin1Char('|'));
    404404
    405405        QList<FaceData> cachedFaces;
     
    613613            // remove from the both caches
    614614            QString fileKey = it.key();
    615             fileKey.replace("/", "|");
     615            fileKey.replace(QLatin1Char('/'), QLatin1Char('|'));
    616616            fontCache.remove(fileKey);
    617617            it = knownFontFiles.erase(it);
Note: See TracChangeset for help on using the changeset viewer.