diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-13 16:13:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-15 19:17:01 +0200 |
commit | 00f257a7ef4f1ec52887bc379c14757e057e94c8 (patch) | |
tree | 816bf25723911674850987df481919816c627416 /cppu/source/uno/lbenv.cxx | |
parent | 6c12c659fb22aeab1d1d5d0e8298662e2a602499 (diff) |
rtl::Static -> thread-safe static local
Change-Id: Iac0501e6aa35cc3d8e62f6b6e68b76cf70233aae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120459
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppu/source/uno/lbenv.cxx')
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index 03dbc99eafcc..ad61cee0cf67 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -819,11 +819,10 @@ namespace const OUString& getOIdPart() const { return m_sOidPart; } }; - class theStaticOIdPart : public rtl::Static<makeOIdPart, theStaticOIdPart> {}; - const OUString & unoenv_getStaticOIdPart() { - return theStaticOIdPart::get().getOIdPart(); + static makeOIdPart theStaticOIdPart; + return theStaticOIdPart.getOIdPart(); } } |