diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:15:40 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-28 11:50:12 +0200 |
commit | b4de1a98e61a75782464a440a33acf7435e1bbb9 (patch) | |
tree | 8eb0199cad5d147036a7fa1d604994d042fc84e4 /vcl/win | |
parent | 44239426ad12050b0e3a7db87efa202288ba2e14 (diff) |
Use getXWeak in vcl
Change-Id: I665c9dc8c4f9cc4a996d9bf990cbfa33822bd07f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150885
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/dtrans/clipboardmanager.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/dtrans/clipboardmanager.cxx b/vcl/win/dtrans/clipboardmanager.cxx index 82a1da85bd66..bff5aec49fa9 100644 --- a/vcl/win/dtrans/clipboardmanager.cxx +++ b/vcl/win/dtrans/clipboardmanager.cxx @@ -192,8 +192,7 @@ dtrans_ClipboardManager_get_implementation( return nullptr; if (!g_Instance) g_Instance.set(new ClipboardManager()); - g_Instance->acquire(); - return static_cast<cppu::OWeakObject*>(g_Instance.get()); + return cppu::acquire(g_Instance.get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |