diff options
author | Shlyak Pavel | 2018-11-30 22:02:13 +0100 |
---|---|---|
committer | Alf Gaida | 2018-12-10 00:48:44 +0100 |
commit | 57ef3f63e2da8c3b4017907686ecefbab0a0d8a0 (patch) | |
tree | c6629b654325d9d2756cbf1afc856928cd060d7e | |
parent | Use auto when declaring iterators (diff) | |
download | pavucontrol-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.cc | 2 |
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) { |