diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-27 22:57:31 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-27 22:58:07 +0100 |
commit | 8c3c491d4f419b496ac25f306b4b4ea7966465d7 (patch) | |
tree | 3105d4f9a22619521d4b632265d730ef69373068 /cppu/source/UnsafeBridge | |
parent | a8fdb0ba4d83e7df5b8c325aabf4ba2fa28e9545 (diff) |
Some cppcheck cleaning
Change-Id: Iac1c26d031e8196ef93cb403dc60f07e0eef6380
Diffstat (limited to 'cppu/source/UnsafeBridge')
-rw-r--r-- | cppu/source/UnsafeBridge/UnsafeBridge.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cppu/source/UnsafeBridge/UnsafeBridge.cxx b/cppu/source/UnsafeBridge/UnsafeBridge.cxx index 96a531068123..382ed3e36f7f 100644 --- a/cppu/source/UnsafeBridge/UnsafeBridge.cxx +++ b/cppu/source/UnsafeBridge/UnsafeBridge.cxx @@ -118,12 +118,11 @@ void UnsafeBridge::v_leave(void) int UnsafeBridge::v_isValid(rtl::OUString * pReason) { - int result = 1; - - result = m_count > 0; + int result = m_count > 0; if (!result) + { *pReason = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("not entered")); - + } else { result = m_threadId == osl_getThreadIdentifier(NULL); |