Debugger: Fix clarify calculation precedence for '&' and '?' warnings.

Codacy.
This commit is contained in:
lightningterror 2023-01-05 11:46:06 +01:00
parent 10f468dd3f
commit 314143db7a
1 changed files with 2 additions and 2 deletions

View File

@ -311,9 +311,9 @@ void CpuWidget::updateBreakpoints()
// Type (R/O)
QTableWidgetItem* typeItem = new QTableWidgetItem();
QString type("");
type += memcheck.cond & MEMCHECK_READ ? tr("Read") : "";
type += (memcheck.cond & MEMCHECK_READ) ? tr("Read") : "";
type += ((memcheck.cond & MEMCHECK_BOTH) == MEMCHECK_BOTH) ? ", " : " ";
type += memcheck.cond & MEMCHECK_WRITE ? memcheck.cond & MEMCHECK_WRITE_ONCHANGE ? tr("Write(C)") : tr("Write") : "";
type += (memcheck.cond & MEMCHECK_WRITE) ? (memcheck.cond & MEMCHECK_WRITE_ONCHANGE) ? tr("Write(C)") : tr("Write") : "";
typeItem->setText(type);
typeItem->setFlags(Qt::ItemFlag::ItemIsEnabled | Qt::ItemFlag::ItemIsSelectable);
m_ui.breakpointList->setItem(iter, 0, typeItem);