Commit e6a40410 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Remove pointless member variable

The called function uses already static state.

Change-Id: I22c6cceea6c0c779c4b8ca94b74e0828e27b1f4e
Reviewed-by: Ivan Donchevskii's avatarIvan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke's avatarMarco Bubke <marco.bubke@qt.io>
parent f99352df
......@@ -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();
......
......@@ -105,7 +105,6 @@ private:
QTextDocument *textDocument = nullptr;
};
QHash<quint64, ReferencesEntry> m_referencesTable;
const bool m_printAliveMessage = false;
};
class IpcSenderInterface
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment