mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Add missing type qualifiers
This commit is contained in:
@@ -48,7 +48,7 @@ Size get_maximum_screen_dimensions(xcb_connection_t& x11_connection);
|
||||
xcb_window_t get_x11_handle(HWND win32_handle);
|
||||
ATOM register_window_class(std::string window_class_name);
|
||||
|
||||
WindowClass::WindowClass(std::string name)
|
||||
WindowClass::WindowClass(const std::string& name)
|
||||
: atom(register_window_class(name)) {}
|
||||
|
||||
WindowClass::~WindowClass() {
|
||||
|
||||
@@ -48,7 +48,7 @@ struct Size {
|
||||
*/
|
||||
class WindowClass {
|
||||
public:
|
||||
WindowClass(std::string name);
|
||||
explicit WindowClass(const std::string& name);
|
||||
~WindowClass();
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,8 +31,7 @@ Win32Timer::~Win32Timer() {
|
||||
}
|
||||
}
|
||||
|
||||
Win32Timer::Win32Timer(Win32Timer&& o) {
|
||||
timer_id = o.timer_id;
|
||||
Win32Timer::Win32Timer(Win32Timer&& o) : timer_id(o.timer_id) {
|
||||
o.timer_id = std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user