diff options
author | Jesper Thomschütz <jesper@trolltech.com> | 2009-05-14 13:48:31 (GMT) |
---|---|---|
committer | Jesper Thomschütz <jesper@trolltech.com> | 2009-05-14 13:55:14 (GMT) |
commit | 8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11 (patch) | |
tree | feed93dc8771667dd2f9ef73fd18c53426e50f17 /qmake/generators | |
parent | f09304d46bac91f3e8329cb7147f8df44898d1e0 (diff) | |
download | Qt-8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11.zip Qt-8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11.tar.gz Qt-8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11.tar.bz2 |
Use isNull() for strings instead of comparing against QString().
foo == QString() should be foo.isNull(). Fixes 7 warnings in the Norwegian Breakfast Network
Reviewed-by: Samuel
Diffstat (limited to 'qmake/generators')
-rw-r--r-- | qmake/generators/xmloutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/xmloutput.cpp b/qmake/generators/xmloutput.cpp index 68d22e1..d77dd4b 100644 --- a/qmake/generators/xmloutput.cpp +++ b/qmake/generators/xmloutput.cpp @@ -277,7 +277,7 @@ void XmlOutput::closeTag() void XmlOutput::closeTo(const QString &tag) { bool cont = true; - if (!tagStack.contains(tag) && tag != QString()) { + if (!tagStack.contains(tag) && !tag.isNull()) { //warn_msg(WarnLogic, "<%s>: Cannot close to tag <%s>, not on stack", tagStack.last().latin1(), tag.latin1()); qDebug("<%s>: Cannot close to tag <%s>, not on stack", tagStack.last().toLatin1().constData(), tag.toLatin1().constData()); return; |