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/LogBridge | |
parent | fdo#58222 The BASIC HEX Command now returns uppercase hexadecimal characters (diff) | |
download | core-8c3c491d4f419b496ac25f306b4b4ea7966465d7.tar.gz core-8c3c491d4f419b496ac25f306b4b4ea7966465d7.zip |
Some cppcheck cleaning
Change-Id: Iac1c26d031e8196ef93cb403dc60f07e0eef6380
Diffstat (limited to 'cppu/source/LogBridge')
-rw-r--r-- | cppu/source/LogBridge/LogBridge.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cppu/source/LogBridge/LogBridge.cxx b/cppu/source/LogBridge/LogBridge.cxx index 0d161fb88321..a1cacf442db8 100644 --- a/cppu/source/LogBridge/LogBridge.cxx +++ b/cppu/source/LogBridge/LogBridge.cxx @@ -109,12 +109,11 @@ void LogBridge::v_leave(void) int LogBridge::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); |