diff --git a/src/qt/voting/polltablemodel.cpp b/src/qt/voting/polltablemodel.cpp index 9fb10ddd96..487eaf1685 100644 --- a/src/qt/voting/polltablemodel.cpp +++ b/src/qt/voting/polltablemodel.cpp @@ -72,8 +72,8 @@ class PollTableDataModel : public QAbstractTableModel return QString::number(row->m_vote_percent_AVW, 'f', 4); case PollTableModel::TopAnswer: return row->m_top_answer; - } - break; + } // no default case, so the compiler can warn about missing cases + assert(false); case Qt::TextAlignmentRole: switch (index.column()) { @@ -102,8 +102,8 @@ class PollTableDataModel : public QAbstractTableModel return QVariant::fromValue(row->m_vote_percent_AVW); case PollTableModel::TopAnswer: return row->m_top_answer; - } - break; + } // no default case, so the compiler can warn about missing cases + assert(false); } return QVariant();