From 49fe9f5db13f15460a49c5771ee0d2c6b8bfdc3c Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Tue, 12 Feb 2019 23:47:17 +0100 Subject: Use empty instead of size --- Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinQt/Debugger/WatchWidget.cpp') diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 69057f0dbb..d4bc8ae65a 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -232,7 +232,7 @@ void WatchWidget::ShowContextMenu() { QMenu* menu = new QMenu(this); - if (m_table->selectedItems().size()) + if (!m_table->selectedItems().empty()) { auto row_variant = m_table->selectedItems()[0]->data(Qt::UserRole); -- cgit v1.2.3