From 078ba2d0a202c3058c39db75921f401e5f2c4d0a Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 16 May 2012 11:26:11 +0200 Subject: qdoc: Fix some QString usage issues (Krazy warnings). - Avoid single-character constants. - Use QString() instead of "". Change-Id: If04eff389e7b6d4a18201365b711708fdf545d00 Reviewed-by: Casper van Donderen --- src/tools/qdoc/cppcodeparser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tools/qdoc/cppcodeparser.cpp') diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp index cc9692808a8..d25f5e05e88 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]; -- cgit v1.2.3