[vlc-commits] qt: fix compilation

KO Myung-Hun git at videolan.org
Fri Jul 21 13:08:18 CEST 2017


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Fri Jul 21 08:18:39 2017 +0900| [7864c554177804daf62cf84e989e13eb9572d3b4] | committer: Jean-Baptiste Kempf

qt: fix compilation

Include algorithm.

-----
  CXX      gui/qt/components/libqt_plugin_la-extended_panels.lo
  ...
gui/qt/components/extended_panels.cpp: In function 'QString ChangeFiltersString(intf_thread_t*, const char*, const char*, bool)':
gui/qt/components/extended_panels.cpp:296:62: error: no matching function for call to 'find(QList<QString>::iterator, QList<QString>::iterator, const char*&)'
     if( b_add && std::find(list.begin(), list.end(), psz_name) == list.end() )
  ...
-----

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7864c554177804daf62cf84e989e13eb9572d3b4
---

 modules/gui/qt/components/extended_panels.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index b6874ea295..8e34b817ec 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -29,6 +29,8 @@
 
 #include <math.h>
 
+#include <algorithm>
+
 #include <QLabel>
 #include <QVariant>
 #include <QString>



More information about the vlc-commits mailing list