diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 16:49:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 16:49:03 +0200 |
commit | e85fcef1af0c96b0e8334bd7b6256e0b02810e43 (patch) | |
tree | 71685f34d0d18d4ec1c3a29d289aba9e6c43666b /sal/osl/unx/thread.cxx | |
parent | ea3ef1a2a06b7ac0fa9f618498f9caf48ebc40bd (diff) |
Try to fix loplugin:comparisonwithconstant's rewrite-with-macros issue
...that had plagued 2e293a731c1559c9869dfcb32491bc600fc18e4e "new
loplugin/rewriter comparisonwithconstant" (in sal/osl/unx/pipe.cxx), and
auto-rewrite the remaining occurrences in sal (that the mentioned commit had
failed to address, for whatever reason)
Change-Id: I3dc3bae8dd92ba8bf576f6e06e7c9ee21f883661
Diffstat (limited to 'sal/osl/unx/thread.cxx')
-rw-r--r-- | sal/osl/unx/thread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index a4a666ff2b31..2fb488a48b57 100644 --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -1019,7 +1019,7 @@ rtl_TextEncoding SAL_CALL osl_getThreadTextEncoding() /* check for thread specific encoding, use default if not set */ threadEncoding = static_cast<rtl_TextEncoding>( reinterpret_cast<sal_uIntPtr>(pthread_getspecific(g_thread.m_textencoding.m_key))); - if (0 == threadEncoding) + if (threadEncoding == 0) threadEncoding = g_thread.m_textencoding.m_default; return threadEncoding; |