From e8beed4a4491ce0d9d53bb82eb037211b29f58c1 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Fri, 20 May 2016 16:16:16 +0200 Subject: 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 --- examples/xmlpatterns/schema/mainwindow.cpp | 2 -- 1 file changed, 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; }; -- cgit v1.2.1