mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Add proper copy and move semantics to proxy handle
This commit is contained in:
@@ -50,7 +50,7 @@ class WineXdndProxy {
|
||||
* Before calling this, the reference count should be increased by one
|
||||
* in `WineXdndProxy::init_proxy()`.
|
||||
*/
|
||||
Handle(WineXdndProxy& proxy);
|
||||
Handle(WineXdndProxy* proxy);
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -59,8 +59,14 @@ class WineXdndProxy {
|
||||
*/
|
||||
~Handle() noexcept;
|
||||
|
||||
Handle(const Handle&) noexcept;
|
||||
Handle& operator=(const Handle&) noexcept;
|
||||
|
||||
Handle(Handle&&) noexcept;
|
||||
Handle& operator=(Handle&&) noexcept;
|
||||
|
||||
private:
|
||||
WineXdndProxy& proxy;
|
||||
WineXdndProxy* proxy;
|
||||
|
||||
friend WineXdndProxy;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user