[kwin] Use alias template for ScopedCPointer
Supported in gcc since 4.7 and in clang since 3.0. REVIEW: 116917
This commit is contained in:
parent
5977545ee6
commit
a9c69519cd
1 changed files with 1 additions and 6 deletions
7
utils.h
7
utils.h
|
@ -120,12 +120,7 @@ enum ShadeMode {
|
|||
ShadeActivated // "shaded", but visible due to alt+tab to the window
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class ScopedCPointer : public QScopedPointer<T, QScopedPointerPodDeleter>
|
||||
{
|
||||
public:
|
||||
ScopedCPointer(T *p = 0) : QScopedPointer<T, QScopedPointerPodDeleter>(p) {}
|
||||
};
|
||||
template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPodDeleter>;
|
||||
|
||||
QByteArray getStringProperty(xcb_window_t w, xcb_atom_t prop, char separator = 0);
|
||||
void updateXTime();
|
||||
|
|
Loading…
Reference in a new issue