Use delete ctor in KWin::Xcb::Window

That's just nicer than not implementing the private ctor.
icc-effect-5.14.5
Martin Gräßlin 2013-09-09 11:26:48 +02:00
parent c616dd45fd
commit b9e39f0d95
1 changed files with 1 additions and 1 deletions

View File

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