diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 12:23:50 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-06-27 12:23:50 +0000 |
commit | d295c69d5f64e57383b4e0617cfac2ecc74e2390 (patch) | |
tree | 3a07314cdb5a3f121af2e9ae32248ce178e67e24 | |
parent | b49f06e66e0f7a84faba85cda3f480bed83bd312 (diff) |
INTEGRATION: CWS sb70 (1.9.2); FILE MERGED
2007/03/21 14:17:50 sb 1.9.2.1: #i75356# Cleaned up null checks.
-rw-r--r-- | sal/inc/osl/thread.hxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sal/inc/osl/thread.hxx b/sal/inc/osl/thread.hxx index 066959663046..46ead64a9dcd 100644 --- a/sal/inc/osl/thread.hxx +++ b/sal/inc/osl/thread.hxx @@ -4,9 +4,9 @@ * * $RCSfile: thread.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2007-03-05 15:27:39 $ + * last change: $Author: hr $ $Date: 2007-06-27 13:23:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -81,8 +81,7 @@ public: virtual ~Thread() { - if( m_hThread ) - osl_destroyThread( m_hThread); + osl_destroyThread( m_hThread); } sal_Bool SAL_CALL create() @@ -128,13 +127,12 @@ public: virtual void SAL_CALL join() { - if( m_hThread ) - osl_joinWithThread(m_hThread); + osl_joinWithThread(m_hThread); } sal_Bool SAL_CALL isRunning() { - return m_hThread != 0 && osl_isThreadRunning(m_hThread); + return osl_isThreadRunning(m_hThread); } void SAL_CALL setPriority( oslThreadPriority Priority) |