fix(window): remove useless operator= and add default copy cstr (#1729)

Fixes compilation under GCC 9

The default copy constructor implicit generation is deprecated by C++ standard.

The window& operator=(const xcb_window_t win); operator seems to be useless.

Fixes #1728
Ref jaagr/xpp#16
This commit is contained in:
Jérôme BOULMIER 2019-04-07 11:32:55 -04:00 committed by Patrick Ziegler
parent 627c4ac2af
commit fca4151f36
3 changed files with 2 additions and 8 deletions

View File

@ -12,10 +12,9 @@ class connection;
class window : public xpp::window<connection&> { class window : public xpp::window<connection&> {
public: public:
window(const window&) = default;
using xpp::window<class connection&>::window; using xpp::window<class connection&>::window;
window& operator=(const xcb_window_t win);
window reconfigure_geom(unsigned short int w, unsigned short int h, short int x = 0, short int y = 0); window reconfigure_geom(unsigned short int w, unsigned short int h, short int x = 0, short int y = 0);
window reconfigure_pos(short int x, short int y); window reconfigure_pos(short int x, short int y);
window reconfigure_struts(unsigned short int w, unsigned short int h, short int x, bool bottom = false); window reconfigure_struts(unsigned short int w, unsigned short int h, short int x, bool bottom = false);

@ -1 +1 @@
Subproject commit ab6247ba7baee2c06d35534e81ae27f622ebd5b4 Subproject commit d2ff2aaba6489f606bbcc090c0a78a8a3f9fcd1f

View File

@ -7,11 +7,6 @@
POLYBAR_NS POLYBAR_NS
window& window::operator=(const xcb_window_t win) {
resource(connection(), win);
return *this;
}
/** /**
* Reconfigure the window geometry * Reconfigure the window geometry
*/ */