wayland: Drop ScopedGlobalPointer
This commit is contained in:
parent
7115ea75a4
commit
624886f0de
1 changed files with 0 additions and 14 deletions
|
@ -11,26 +11,12 @@
|
|||
#include <QRegion>
|
||||
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
struct wl_resource;
|
||||
|
||||
namespace KWaylandServer
|
||||
{
|
||||
template<typename T>
|
||||
struct SafeGlobalDeleter
|
||||
{
|
||||
void operator()(T *global)
|
||||
{
|
||||
if (global) {
|
||||
global->remove();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
using ScopedGlobalPointer = std::unique_ptr<T, SafeGlobalDeleter<T>>;
|
||||
|
||||
/**
|
||||
* Returns an infinite region.
|
||||
|
|
Loading…
Reference in a new issue