Clang: Remove pointless member variable

The called function uses already static state.

Change-Id: I22c6cceea6c0c779c4b8ca94b74e0828e27b1f4e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-06-14 16:45:19 +02:00
parent f99352df5c
commit e6a4041003
2 changed files with 1 additions and 3 deletions

View File

@@ -112,7 +112,6 @@ static bool printAliveMessage()
}
IpcReceiver::IpcReceiver()
: m_printAliveMessage(printAliveMessage())
{
}
@@ -176,7 +175,7 @@ bool IpcReceiver::isExpectingCodeCompletedMessage() const
void IpcReceiver::alive()
{
if (m_printAliveMessage)
if (printAliveMessage())
qCDebug(log) << "<<< AliveMessage";
QTC_ASSERT(m_aliveHandler, return);
m_aliveHandler();