use Helper::ScopedPointer instead of QScopedPointer for simplification.

This commit is contained in:
Hugo Pereira Da Costa 2013-11-11 21:44:33 +01:00
parent 33363908c1
commit eaa1930975
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,6 @@
#include <QGroupBox>
#include <QMouseEvent>
#include <QPushButton>
#include <QScopedPointer>
#include <QX11Info>
#include <xcb/xcb.h>

View file

@ -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;