[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [koffice] filters/kword/docx: Use isEmpty rather than comparing to
From:       "Dr. Robert Marmorstein" <robert () narnia ! homeunix ! com>
Date:       2011-08-03 8:25:22
Message-ID: 20110803082522.440FDA60AE () git ! kde ! org
[Download RAW message or body]

Git commit 84c68764ca9d7a5c4a69c0467938e5553594f6a4 by Dr. Robert Marmorstein.
Committed on 03/08/2011 at 09:42.
Pushed by robertm into branch 'master'.

Use isEmpty rather than comparing to a NULL string

M  +1    -1    filters/kword/docx/DocxXmlDocumentReader.cpp

http://commits.kde.org/koffice/84c68764ca9d7a5c4a69c0467938e5553594f6a4

diff --git a/filters/kword/docx/DocxXmlDocumentReader.cpp b/filters/kword/docx/DocxXmlDocumentReader.cpp
index 5502f58..dacadf4 100644
--- a/filters/kword/docx/DocxXmlDocumentReader.cpp
+++ b/filters/kword/docx/DocxXmlDocumentReader.cpp
@@ -3026,7 +3026,7 @@ KoFilter::ConversionStatus DocxXmlDocumentReader::read_tblCellMar()
                 side = QString();
             }
         }
-        if (!(side == QString())) {
+        if ( !side.isEmpty() ) {
             const QXmlStreamAttributes attrs(attributes());
             TRY_READ_ATTR(w)
             if (!w.isEmpty()) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic