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:
parent
4f7800a56a
commit
a3f2d56eaf
1 changed files with 10 additions and 10 deletions
20
xcbutils.cpp
20
xcbutils.cpp
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
//****************************************
|
||||
|
|
Loading…
Reference in a new issue