From a9c69519cde939e37d169cb232222e6a5b8881ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 20 Mar 2014 09:42:35 +0100 Subject: [PATCH] [kwin] Use alias template for ScopedCPointer Supported in gcc since 4.7 and in clang since 3.0. REVIEW: 116917 --- utils.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/utils.h b/utils.h index e907e1579a..198db9253f 100644 --- a/utils.h +++ b/utils.h @@ -120,12 +120,7 @@ enum ShadeMode { ShadeActivated // "shaded", but visible due to alt+tab to the window }; -template -class ScopedCPointer : public QScopedPointer -{ -public: - ScopedCPointer(T *p = 0) : QScopedPointer(p) {} -}; +template using ScopedCPointer = QScopedPointer; QByteArray getStringProperty(xcb_window_t w, xcb_atom_t prop, char separator = 0); void updateXTime();