forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user