X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwayland.hpp;h=5917abf034a5c35584716d32977b459aa75c44fe;hb=053ca969fe869d38d92319415e2a8cacbaebf0e7;hp=c47e2182617774a2a73ecd98588d75a5ad87c3cf;hpb=4bfc9ea5a9a5598aceb4e3e43fd2ade99d789200;p=staging%2Fwindowmanager.git diff --git a/src/wayland.hpp b/src/wayland.hpp index c47e218..5917abf 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -22,10 +22,9 @@ struct wayland_proxy { wayland_proxy(wayland_proxy const &) = delete; wayland_proxy &operator=(wayland_proxy const &) = delete; wayland_proxy(void *p) - : wayland_proxy(p, [](ProxyT *p) { - wl_proxy_destroy(reinterpret_cast(p)); - }) {} - wayland_proxy(void *p, std::function p_del) + : wayland_proxy(p, + reinterpret_cast(wl_proxy_destroy)) {} + wayland_proxy(void *p, std::function &&p_del) : proxy(std::unique_ptr>( static_cast(p), p_del)) {} };