summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorJesper Thomschütz <jesper@trolltech.com>2009-05-14 13:48:31 (GMT)
committerJesper Thomschütz <jesper@trolltech.com>2009-05-14 13:55:14 (GMT)
commit8e9b041f0081cd5af67c5c5f3cee0cf2b70ffe11 (patch)
treefeed93dc8771667dd2f9ef73fd18c53426e50f17 /qmake/generators
parentf09304d46bac91f3e8329cb7147f8df44898d1e0 (diff)
downloadQt-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.cpp2
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;