diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-17 11:38:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-17 22:40:40 +0200 |
commit | 4dc40659044566280c202e26cab97d682ae6ab54 (patch) | |
tree | d97f0e436aac00a5f52624959b0662eb21a534a0 /basic/source/comp | |
parent | 889df64fbb9534491b76140d63b4340091c763e4 (diff) |
rtl::Static -> thread-safe static local
Change-Id: I9f8fe250813f4f376dc46c6f3d7e25e90fdbb50e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120566
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/token.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index bf47a1b2aaa8..9be47bf41ba1 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -21,7 +21,6 @@ #include <array> #include <basic/sberrors.hxx> -#include <rtl/instance.hxx> #include <sal/macros.h> #include <basiccharclass.hxx> #include <token.hxx> @@ -192,8 +191,6 @@ public: { return m_pTokenCanBeLabelTab[eTok]; } }; -class StaticTokenLabelInfo: public ::rtl::Static< TokenLabelInfo, StaticTokenLabelInfo >{}; - } // #i109076 @@ -546,7 +543,9 @@ special: bool SbiTokenizer::MayBeLabel( bool bNeedsColon ) { - if( eCurTok == SYMBOL || StaticTokenLabelInfo::get().canTokenBeLabel( eCurTok ) ) + static TokenLabelInfo gaStaticTokenLabelInfo; + + if( eCurTok == SYMBOL || gaStaticTokenLabelInfo.canTokenBeLabel( eCurTok ) ) { return !bNeedsColon || DoesColonFollow(); } |