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
This commit is contained in:
Tomaz Canabrava 2019-07-08 21:05:21 +02:00
parent 4f7800a56a
commit a3f2d56eaf

View file

@ -543,16 +543,16 @@ int Extensions::syncAlarmNotifyEvent() const
QVector<ExtensionData> Extensions::extensions() const
{
QVector<ExtensionData> 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
};
}
//****************************************