summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShlyak Pavel2018-11-30 22:02:13 +0100
committerAlf Gaida2018-12-10 00:48:44 +0100
commit57ef3f63e2da8c3b4017907686ecefbab0a0d8a0 (patch)
treec6629b654325d9d2756cbf1afc856928cd060d7e
parentUse auto when declaring iterators (diff)
downloadpavucontrol-slx-57ef3f63e2da8c3b4017907686ecefbab0a0d8a0.tar.gz
pavucontrol-slx-57ef3f63e2da8c3b4017907686ecefbab0a0d8a0.tar.xz
pavucontrol-slx-57ef3f63e2da8c3b4017907686ecefbab0a0d8a0.zip
Empty() is probably a better choice here
-rw-r--r--src/devicewidget.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devicewidget.cc b/src/devicewidget.cc
index 95c7ef4..c27b4fd 100644
--- a/src/devicewidget.cc
+++ b/src/devicewidget.cc
@@ -201,7 +201,7 @@ void DeviceWidget::prepareMenu() {
if (active_idx >= 0)
portList->setCurrentIndex(active_idx);
- if (ports.size() > 0) {
+ if (!ports.empty()) {
portSelect->show();
if (pa_context_get_server_protocol_version(get_context()) >= 27) {