diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-05-25 09:24:40 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-05-25 09:26:26 (GMT) |
commit | 30ed4ee8cee66bcf3ddf001118ba4905a8bfe644 (patch) | |
tree | 78e89a182680f32da4b2908d6bd8c06765a12431 /src/gui/text/qfontdatabase.cpp | |
parent | bd9197b8c344e2f259f5e1c08a746464a04687bb (diff) | |
download | Qt-30ed4ee8cee66bcf3ddf001118ba4905a8bfe644.zip Qt-30ed4ee8cee66bcf3ddf001118ba4905a8bfe644.tar.gz Qt-30ed4ee8cee66bcf3ddf001118ba4905a8bfe644.tar.bz2 |
Fixed 'crazy' warnings about using a string instead of a character
Wherever I found that we were using a string instead of a single char
I fixed the code.
Reviewed-by: olivier
Diffstat (limited to 'src/gui/text/qfontdatabase.cpp')
-rw-r--r-- | src/gui/text/qfontdatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index c3fc9f5..d3020b0 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -792,7 +792,7 @@ static void initFontDef(const QtFontDesc &desc, const QFontDef &request, QFontDe if (! desc.foundry->name.isEmpty() && desc.family->count > 1) { fontDef->family += QString::fromLatin1(" ["); fontDef->family += desc.foundry->name; - fontDef->family += QString::fromLatin1("]"); + fontDef->family += QLatin1Char(']'); } if (desc.style->smoothScalable) @@ -1495,7 +1495,7 @@ QStringList QFontDatabase::families(WritingSystem writingSystem) const if (!foundry.isEmpty()) { str += QLatin1String(" ["); str += foundry; - str += QLatin1String("]"); + str += QLatin1Char(']'); } flist.append(str); } |