utils/xcbutils: reduce atomic refcount inc/decrement
This commit is contained in:
parent
5cfe84b23b
commit
e5c22cefba
1 changed files with 2 additions and 2 deletions
|
@ -488,12 +488,12 @@ public:
|
|||
class Atom
|
||||
{
|
||||
public:
|
||||
explicit Atom(const QByteArray &name, bool onlyIfExists = false, xcb_connection_t *c = connection())
|
||||
explicit Atom(QByteArray &&name, bool onlyIfExists = false, xcb_connection_t *c = connection())
|
||||
: m_connection(c)
|
||||
, m_retrieved(false)
|
||||
, m_cookie(xcb_intern_atom_unchecked(m_connection, onlyIfExists, name.length(), name.constData()))
|
||||
, m_atom(XCB_ATOM_NONE)
|
||||
, m_name(name)
|
||||
, m_name(std::move(name))
|
||||
{
|
||||
}
|
||||
Atom() = delete;
|
||||
|
|
Loading…
Reference in a new issue