Use delete ctor in KWin::Xcb::Window

That's just nicer than not implementing the private ctor.
This commit is contained in:
Martin Gräßlin 2013-09-09 11:26:48 +02:00
parent c616dd45fd
commit b9e39f0d95

View file

@ -374,6 +374,7 @@ public:
* @param parent The parent window * @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 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(); ~Window();
/** /**
@ -430,7 +431,6 @@ public:
void selectInput(uint32_t events); void selectInput(uint32_t events);
operator xcb_window_t() const; operator xcb_window_t() const;
private: 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()); 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(); void destroy();
xcb_window_t m_window; xcb_window_t m_window;