From e420d8b6926385894a471f84cd10dc9b88af3d9e Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 21 Jun 2016 16:08:46 +0200 Subject: [PATCH] fix msvc2013 build Change-Id: I9b21102285751d0bc6952c949d65ed57edb64bcf Reviewed-by: hjk --- src/plugins/debugger/cdb/cdbengine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 6393d4e4eb0..9287b5c3fab 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2660,8 +2660,10 @@ void CdbEngine::attemptBreakpointSynchronization() qPrintable(parameters.toString())); if (parameters.enabled != bp.response().enabled) { // Change enabled/disabled breakpoints without triggering update. - runCommand({(parameters.enabled ? "be " : "bd ") - + QString::number(breakPointIdToCdbId(id)), NoFlags}); + if (parameters.enabled) + runCommand({"be " + QString::number(breakPointIdToCdbId(id)), NoFlags}); + else + runCommand({"bd " + QString::number(breakPointIdToCdbId(id)), NoFlags}); response.pending = false; response.enabled = parameters.enabled; bp.setResponse(response);