Simplify initialization of vector

This commit is contained in:
Chris Thrasher 2024-07-15 15:43:14 -06:00
parent ada2393890
commit 619e532fc2
No known key found for this signature in database
GPG Key ID: 56FB686C9DFC8E2C

View File

@ -285,11 +285,7 @@ void ClipboardImpl::processEvent(XEvent& windowEvent)
if (selectionRequestEvent.target == m_targets) if (selectionRequestEvent.target == m_targets)
{ {
// Respond to a request for our valid conversion targets // Respond to a request for our valid conversion targets
std::vector<Atom> targets; std::vector<Atom> targets{m_targets, m_text, XA_STRING};
targets.push_back(m_targets);
targets.push_back(m_text);
targets.push_back(XA_STRING);
if (m_utf8String != None) if (m_utf8String != None)
targets.push_back(m_utf8String); targets.push_back(m_utf8String);