From b44e93557f2ca1c8f96be3b8845121738a26c574 Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tcanabrava@kde.org>
Date: Tue, 9 Jul 2019 16:37:07 +0200
Subject: [PATCH] Cleanup glPainter

---
 .../painters/openglsurfacepainter.cpp              | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/VideoStreaming/gstqtvideosink/painters/openglsurfacepainter.cpp b/src/VideoStreaming/gstqtvideosink/painters/openglsurfacepainter.cpp
index 91921e9..b77bf0a 100644
--- a/src/VideoStreaming/gstqtvideosink/painters/openglsurfacepainter.cpp
+++ b/src/VideoStreaming/gstqtvideosink/painters/openglsurfacepainter.cpp
@@ -67,26 +67,26 @@ OpenGLSurfacePainter::OpenGLSurfacePainter()
 //static
 QSet<GstVideoFormat> OpenGLSurfacePainter::supportedPixelFormats()
 {
-    return QSet<GstVideoFormat>()
+    return QSet<GstVideoFormat>({
         //also handled by the generic painter on LE
-        << GST_VIDEO_FORMAT_BGRA
-        << GST_VIDEO_FORMAT_BGRx
+        GST_VIDEO_FORMAT_BGRA,
+        GST_VIDEO_FORMAT_BGRx,
 
         //also handled by the generic painter on BE
-        << GST_VIDEO_FORMAT_ARGB
-        << GST_VIDEO_FORMAT_xRGB
+        GST_VIDEO_FORMAT_ARGB,
+        GST_VIDEO_FORMAT_xRGB,
 
         //also handled by the generic painter everywhere
-        << GST_VIDEO_FORMAT_RGB
-        << GST_VIDEO_FORMAT_RGB16
+        GST_VIDEO_FORMAT_RGB,
+        GST_VIDEO_FORMAT_RGB16,
 
         //not handled by the generic painter
-        << GST_VIDEO_FORMAT_BGR
-        << GST_VIDEO_FORMAT_v308
-        << GST_VIDEO_FORMAT_AYUV
-        << GST_VIDEO_FORMAT_YV12
-        << GST_VIDEO_FORMAT_I420
-        ;
+        GST_VIDEO_FORMAT_BGR,
+        GST_VIDEO_FORMAT_v308,
+        GST_VIDEO_FORMAT_AYUV,
+        GST_VIDEO_FORMAT_YV12,
+        GST_VIDEO_FORMAT_I420,
+    });
 }
 
 void OpenGLSurfacePainter::updateColors(int brightness, int contrast, int hue, int saturation)