[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:
Martin Gräßlin 2014-03-20 09:42:35 +01:00
parent 5977545ee6
commit a9c69519cd

View file

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