mirror of
https://github.com/polybar/polybar.git
synced 2026-02-05 16:25:33 +00:00
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:
committed by
Patrick Ziegler
parent
627c4ac2af
commit
fca4151f36
@ -12,10 +12,9 @@ class connection;
|
||||
|
||||
class window : public xpp::window<connection&> {
|
||||
public:
|
||||
window(const window&) = default;
|
||||
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_pos(short int x, short int y);
|
||||
window reconfigure_struts(unsigned short int w, unsigned short int h, short int x, bool bottom = false);
|
||||
|
||||
2
lib/xpp
2
lib/xpp
Submodule lib/xpp updated: ab6247ba7b...d2ff2aaba6
@ -7,11 +7,6 @@
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
window& window::operator=(const xcb_window_t win) {
|
||||
resource(connection(), win);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reconfigure the window geometry
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user