[kwin] Use alias template for ScopedCPointer

Supported in gcc since 4.7 and in clang since 3.0.

REVIEW: 116917
icc-effect-5.14.5
Martin Gräßlin 2014-03-20 09:42:35 +01:00
parent 5977545ee6
commit a9c69519cd
1 changed files with 1 additions and 6 deletions

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