From b9e39f0d950642b4562813cc27077d81ea1df688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 9 Sep 2013 11:26:48 +0200 Subject: [PATCH] Use delete ctor in KWin::Xcb::Window That's just nicer than not implementing the private ctor. --- xcbutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcbutils.h b/xcbutils.h index d45cfdf682..a944e61647 100644 --- a/xcbutils.h +++ b/xcbutils.h @@ -374,6 +374,7 @@ public: * @param parent The parent window **/ Window(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); + Window(const Window &other) = delete; ~Window(); /** @@ -430,7 +431,6 @@ public: void selectInput(uint32_t events); operator xcb_window_t() const; private: - Window(const Window &other); xcb_window_t doCreate(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow()); void destroy(); xcb_window_t m_window;