Rename init_proxy -> get_handle

This commit is contained in:
Robbert van der Helm
2021-07-10 15:16:20 +02:00
parent 1946693244
commit b47a6e034b
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -180,7 +180,8 @@ void CALLBACK dnd_winevent_callback(HWINEVENTHOOK /*hWinEventHook*/,
// This shouldn't be possible, but you can never be too sure!
if (instance_reference_count <= 0 || !instance) {
std::cerr << "Drag-and-drop proxy wasn't initialized yet" << std::endl;
std::cerr << "Drag-and-drop proxy has not yet been initialized"
<< std::endl;
return;
}
}
@@ -213,7 +214,7 @@ WineXdndProxy::Handle::Handle(Handle&& o) noexcept : proxy(o.proxy) {
instance_reference_count += 1;
}
WineXdndProxy::Handle WineXdndProxy::init_proxy() {
WineXdndProxy::Handle WineXdndProxy::get_handle() {
// See the `instance` global above for an explanation on what's going on
// here.
if (instance_reference_count.fetch_add(1) == 0) {