Change QXcbConnection::atom() to be inline.
Change-Id: I88b5b2527808f7c603c5a041df9c8c9e8031a608 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
f029564607
commit
62533768c8
@ -1419,11 +1419,6 @@ static const char * xcb_atomnames = {
|
|||||||
"_XSETTINGS_SETTINGS\0" // \0\0 terminates loop.
|
"_XSETTINGS_SETTINGS\0" // \0\0 terminates loop.
|
||||||
};
|
};
|
||||||
|
|
||||||
xcb_atom_t QXcbConnection::atom(QXcbAtom::Atom atom) const
|
|
||||||
{
|
|
||||||
return m_allAtoms[atom];
|
|
||||||
}
|
|
||||||
|
|
||||||
QXcbAtom::Atom QXcbConnection::qatom(xcb_atom_t xatom) const
|
QXcbAtom::Atom QXcbConnection::qatom(xcb_atom_t xatom) const
|
||||||
{
|
{
|
||||||
return static_cast<QXcbAtom::Atom>(qFind(m_allAtoms, m_allAtoms + QXcbAtom::NAtoms, xatom) - m_allAtoms);
|
return static_cast<QXcbAtom::Atom>(qFind(m_allAtoms, m_allAtoms + QXcbAtom::NAtoms, xatom) - m_allAtoms);
|
||||||
|
@ -352,7 +352,7 @@ public:
|
|||||||
const QList<QXcbScreen *> &screens() const { return m_screens; }
|
const QList<QXcbScreen *> &screens() const { return m_screens; }
|
||||||
int primaryScreen() const { return m_primaryScreen; }
|
int primaryScreen() const { return m_primaryScreen; }
|
||||||
|
|
||||||
xcb_atom_t atom(QXcbAtom::Atom atom) const;
|
inline xcb_atom_t atom(QXcbAtom::Atom atom) const { return m_allAtoms[atom]; }
|
||||||
QXcbAtom::Atom qatom(xcb_atom_t atom) const;
|
QXcbAtom::Atom qatom(xcb_atom_t atom) const;
|
||||||
xcb_atom_t internAtom(const char *name);
|
xcb_atom_t internAtom(const char *name);
|
||||||
QByteArray atomName(xcb_atom_t atom);
|
QByteArray atomName(xcb_atom_t atom);
|
||||||
|
Loading…
Reference in New Issue
Block a user