CDB: Use false instead of zero when a boolean is returned

Change-Id: I52e95cd046c49cc1b3e2e433e80a6825042372f3
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
David Schulz
2014-10-14 14:34:46 +02:00
parent 3f361ee077
commit 016d36f549

View File

@@ -448,14 +448,14 @@ bool ExtensionContext::call(const std::string &functionCall,
HRESULT hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, call.c_str(), DEBUG_EXECUTE_ECHO); HRESULT hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, call.c_str(), DEBUG_EXECUTE_ECHO);
if (FAILED(hr)) { if (FAILED(hr)) {
*errorMessage = msgDebugEngineComFailed("Execute", hr); *errorMessage = msgDebugEngineComFailed("Execute", hr);
return 0; return false;
} }
// Execute in current thread. TODO: This must not crash, else we are in an inconsistent state // Execute in current thread. TODO: This must not crash, else we are in an inconsistent state
// (need to call 'gh', etc.) // (need to call 'gh', etc.)
hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, goCommandForCall(callFlags), DEBUG_EXECUTE_ECHO); hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, goCommandForCall(callFlags), DEBUG_EXECUTE_ECHO);
if (FAILED(hr)) { if (FAILED(hr)) {
*errorMessage = msgDebugEngineComFailed("Execute", hr); *errorMessage = msgDebugEngineComFailed("Execute", hr);
return 0; return false;
} }
// Wait until finished // Wait until finished
startRecordingOutput(); startRecordingOutput();