Skip to content

Commit

Permalink
more code modernization
Browse files Browse the repository at this point in the history
  • Loading branch information
eteran committed Mar 19, 2024
1 parent 78b2718 commit 858a1ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/HeapAnalyzer/DialogHeap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ DialogHeap::DialogHeap(QWidget *parent, Qt::WindowFlags f)
// seed our search with the selected blocks
const QItemSelectionModel *const selModel = ui.tableView->selectionModel();
const QModelIndexList sel = selModel->selectedRows();
if (sel.size() != 0) {
if (!sel.isEmpty()) {
for (const QModelIndex &index : sel) {
const QModelIndex idx = filterModel_->mapToSource(index);
auto item = static_cast<ResultViewModel::Result *>(idx.internalPointer());
Expand Down
2 changes: 1 addition & 1 deletion plugins/InstructionInspector/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ class Disassembler {
cs_close(&csh_);
}

csh handle() const {
[[nodiscard]] csh handle() const {
return csh_;
}
};
Expand Down

0 comments on commit 858a1ca

Please sign in to comment.