From 4cbfff8a4a9de868d0d24281acfb661180504e07 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Mar 2019 18:26:06 +0100 Subject: video/opencv: fix linux build again --- video-opencv/video-property-page.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video-opencv/video-property-page.cpp') diff --git a/video-opencv/video-property-page.cpp b/video-opencv/video-property-page.cpp index a3fe5004..375518db 100644 --- a/video-opencv/video-property-page.cpp +++ b/video-opencv/video-property-page.cpp @@ -147,9 +147,7 @@ bool video_property_page::show(int idx) bool video_property_page::show(int idx) { - const QList camera_names(get_camera_names()); - - if (idx >= 0 && idx < camera_names.size()) + if ((unsigned)idx < get_camera_names().size()) return QProcess::startDetached("qv4l2", QStringList { "-d", QString("/dev/video%1").arg(idx) }); else return false; -- cgit v1.2.3