diff options
Diffstat (limited to 'helpcompiler/source/HelpCompiler.cxx')
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index 9050c5f983a1..08c2149d8516 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -509,13 +509,7 @@ namespace fs { rtl_TextEncoding getThreadTextEncoding() { - static bool bNeedsInit = true; - static rtl_TextEncoding nThreadTextEncoding; - if( bNeedsInit ) - { - bNeedsInit = false; - nThreadTextEncoding = osl_getThreadTextEncoding(); - } + static rtl_TextEncoding nThreadTextEncoding = osl_getThreadTextEncoding(); return nThreadTextEncoding; } |