summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@theqtcompany.com>2016-05-20 16:16:16 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2016-05-31 07:57:54 +0000
commite8beed4a4491ce0d9d53bb82eb037211b29f58c1 (patch)
tree03407ed3e30df4a34efe95543f04ad619250a7a2 /examples
parent30e00535dd61c3328436e52a7c3367079551d6c8 (diff)
downloadqtxmlpatterns-e8beed4a4491ce0d9d53bb82eb037211b29f58c1.tar.gz
Example MessageHandler: remove unused m_messageType.
Coverity (CID 22275) pointed out it wasn't initialized in the constructor. It isn't even accessed; and the method that sets it claims the parameter it sets it to is unused. So just remove it. Change-Id: Id48f45a89b7a2d3d44e92b785d425592f1bc6467 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/xmlpatterns/schema/mainwindow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/xmlpatterns/schema/mainwindow.cpp b/examples/xmlpatterns/schema/mainwindow.cpp
index 512a76f..688ecf0 100644
--- a/examples/xmlpatterns/schema/mainwindow.cpp
+++ b/examples/xmlpatterns/schema/mainwindow.cpp
@@ -75,13 +75,11 @@ protected:
Q_UNUSED(type);
Q_UNUSED(identifier);
- m_messageType = type;
m_description = description;
m_sourceLocation = sourceLocation;
}
private:
- QtMsgType m_messageType;
QString m_description;
QSourceLocation m_sourceLocation;
};