use Helper::ScopedPointer instead of QScopedPointer for simplification.
This commit is contained in:
parent
33363908c1
commit
eaa1930975
2 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,6 @@
|
|||
#include <QGroupBox>
|
||||
#include <QMouseEvent>
|
||||
#include <QPushButton>
|
||||
#include <QScopedPointer>
|
||||
|
||||
#include <QX11Info>
|
||||
#include <xcb/xcb.h>
|
||||
|
|
|
@ -102,7 +102,7 @@ namespace Oxygen
|
|||
while( true )
|
||||
{
|
||||
xcb_query_tree_cookie_t cookie = xcb_query_tree_unchecked( connection, current );
|
||||
QScopedPointer<xcb_query_tree_reply_t, QScopedPointerPodDeleter> tree(xcb_query_tree_reply( connection, cookie, nullptr ) );
|
||||
Helper::ScopedPointer<xcb_query_tree_reply_t> tree(xcb_query_tree_reply( connection, cookie, nullptr ) );
|
||||
if (tree.isNull()) break;
|
||||
|
||||
if (tree->parent && tree->parent != tree->root && tree->parent != current) current = tree->parent;
|
||||
|
|
Loading…
Reference in a new issue