diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-16 11:26:11 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-16 12:30:32 +0200 |
commit | 078ba2d0a202c3058c39db75921f401e5f2c4d0a (patch) | |
tree | 492625ac62ae8b68d715714c69903acdf85dbfe2 /src/tools/qdoc/cppcodeparser.cpp | |
parent | cd9be96b1e670b61c68249ba5760b21dd97a8e9e (diff) |
qdoc: Fix some QString usage issues (Krazy warnings).
- Avoid single-character constants.
- Use QString() instead of "".
Change-Id: If04eff389e7b6d4a18201365b711708fdf545d00
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/tools/qdoc/cppcodeparser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp index cc9692808a..d25f5e05e8 100644 --- a/src/tools/qdoc/cppcodeparser.cpp +++ b/src/tools/qdoc/cppcodeparser.cpp @@ -927,7 +927,7 @@ bool CppCodeParser::splitQmlMethodArg(const QString& arg, } } else { - type = QString(""); + type.clear(); if (colonSplit.size() > 2) { module = colonSplit[0]; element = colonSplit[1]; @@ -1221,7 +1221,7 @@ void CppCodeParser::reset(Tree *tree) access = Node::Public; metaness = FunctionNode::Plain; lastPath.clear(); - moduleName = ""; + moduleName.clear(); } /*! @@ -2441,7 +2441,7 @@ void CppCodeParser::parseQiteratorDotH(const Location &location, text.remove("\\\n"); QStringList lines = text.split(QLatin1Char('\n')); lines = lines.filter("Q_DECLARE"); - lines.replaceInStrings(QRegExp("#define Q[A-Z_]*\\(C\\)"), ""); + lines.replaceInStrings(QRegExp("#define Q[A-Z_]*\\(C\\)"), QString()); if (lines.size() == 4) { sequentialIteratorDefinition = lines[0]; |