diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-30 20:54:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-31 08:55:29 +0200 |
commit | a943936eeff04b60ebd0b2552bc18b42606f3321 (patch) | |
tree | e3a20ebf81feaa0914e9e5b9a0fe008e0ea61c2e /sal/rtl/rtl_process.cxx | |
parent | 620f9649ae55e01700419876ce25ab4e45ed859f (diff) |
rtl::Static -> static local
in a handful cases, like a map or a vector, we don't need init on demand
at all, the default constructor can be laid out at compile time
Change-Id: Ifa3188af7a65cd475ce0f603d15a8c26bcda7e6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl/rtl_process.cxx')
-rw-r--r-- | sal/rtl/rtl_process.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sal/rtl/rtl_process.cxx b/sal/rtl/rtl_process.cxx index 42c24e80074d..76963dc1376b 100644 --- a/sal/rtl/rtl_process.cxx +++ b/sal/rtl/rtl_process.cxx @@ -21,7 +21,6 @@ #include <cstring> -#include <rtl/instance.hxx> #include <rtl/process.h> #include <rtl/uuid.h> #include <sal/types.h> @@ -46,13 +45,12 @@ private: sal_uInt8 uuid_[UUID_SIZE]; }; -struct theId: public rtl::Static< Id, theId > {}; - } // end namespace void rtl_getGlobalProcessId(sal_uInt8 * pTargetUUID) { - theId::get().copy(pTargetUUID); + static Id theId; + theId.copy(pTargetUUID); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |