diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-21 08:47:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-22 10:15:49 +0200 |
commit | 88c85c8aa377ccc017582d8a08e5f73391b5a446 (patch) | |
tree | 62d133967cea1bcac6ab62780bf666adb5a7a867 /desktop | |
parent | 0bac5c7e7d71658c5056c4bf0b71fbfb51b92ca0 (diff) |
flatten vcl::LazyDelete
we can allocate the stored value in-line and avoid some pointer-chasing
Change-Id: I828814b127923cdcec1bf57b3b64dffab4cffaaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119298
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index c70c8f0ed750..193c74472ba4 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -18,8 +18,7 @@ using namespace css; using namespace css::uno; /* static */ osl::Mutex LOKClipboardFactory::gMutex; -static vcl::DeleteOnDeinit<std::unordered_map<int, rtl::Reference<LOKClipboard>>> -gClipboards(new std::unordered_map<int, rtl::Reference<LOKClipboard>>); +static vcl::DeleteOnDeinit<std::unordered_map<int, rtl::Reference<LOKClipboard>>> gClipboards{}; rtl::Reference<LOKClipboard> LOKClipboardFactory::getClipboardForCurView() { |