From a3f2d56eafd06c46d57ccb43e233538dc915b356 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 8 Jul 2019 21:05:21 +0200 Subject: [PATCH] Don't call << in a temporary vector Summary: Create the vector using an initializer list. Reviewers: davidedmundson Reviewed By: davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D21263 --- xcbutils.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xcbutils.cpp b/xcbutils.cpp index a9734fe4a7..fa9f5936e6 100644 --- a/xcbutils.cpp +++ b/xcbutils.cpp @@ -543,16 +543,16 @@ int Extensions::syncAlarmNotifyEvent() const QVector Extensions::extensions() const { - QVector extensions; - extensions << m_shape - << m_randr - << m_damage - << m_composite - << m_render - << m_fixes - << m_sync - << m_glx; - return extensions; + return { + m_shape, + m_randr, + m_damage, + m_composite, + m_render, + m_fixes, + m_sync, + m_glx + }; } //****************************************