diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 12:13:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:47 +0100 |
commit | 20cf2d93fb25d965308865802b1d4e67e682722f (patch) | |
tree | 2bd1096dcf0c4e682fe8118ed1a56d199cba0cad /sal | |
parent | d293fa9e217f778815ae114e7c7778dfc26e4525 (diff) |
Use bool
Change-Id: I46c30a62fb39c2223a369f91010a860372efc72f
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/alloc_arena.cxx | 4 | ||||
-rw-r--r-- | sal/rtl/alloc_cache.cxx | 8 | ||||
-rw-r--r-- | sal/rtl/hash.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index f37d512dffff..500f04d2ab28 100644 --- a/sal/rtl/alloc_arena.cxx +++ b/sal/rtl/alloc_arena.cxx @@ -123,7 +123,7 @@ rtl_arena_segment_destructor (void * obj) * * @precond arena->m_lock acquired. */ -int +bool rtl_arena_segment_populate ( rtl_arena_type * arena ) @@ -420,7 +420,7 @@ rtl_arena_hash_remove ( * @precond arena->m_lock acquired * @precond (*ppSegment == 0) */ -int +bool rtl_arena_segment_alloc ( rtl_arena_type * arena, sal_Size size, diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx index 252fa070c67d..e4ca6c9706f7 100644 --- a/sal/rtl/alloc_cache.cxx +++ b/sal/rtl/alloc_cache.cxx @@ -359,7 +359,7 @@ rtl_cache_slab_destroy ( * * @precond cache->m_slab_lock acquired. */ -int +bool rtl_cache_slab_populate ( rtl_cache_type * cache ) @@ -704,7 +704,7 @@ rtl_cache_depot_exchange_free ( * * @precond cache->m_depot_lock acquired. */ -int +bool rtl_cache_depot_populate ( rtl_cache_type * cache ) @@ -913,7 +913,7 @@ rtl_cache_deactivate ( { /* remove from cache list */ RTL_MEMORY_LOCK_ACQUIRE(&(g_cache_list.m_lock)); - int active = QUEUE_STARTED_NAMED(cache, cache_) == 0; + bool active = !QUEUE_STARTED_NAMED(cache, cache_); QUEUE_REMOVE_NAMED(cache, cache_); RTL_MEMORY_LOCK_RELEASE(&(g_cache_list.m_lock)); @@ -1268,7 +1268,7 @@ SAL_CALL rtl_cache_free ( continue; } - if (rtl_cache_depot_populate(cache) != 0) + if (rtl_cache_depot_populate(cache)) { continue; } diff --git a/sal/rtl/hash.cxx b/sal/rtl/hash.cxx index 823e56ad8eb8..6363406e20cc 100644 --- a/sal/rtl/hash.cxx +++ b/sal/rtl/hash.cxx @@ -135,7 +135,7 @@ rtl_str_hash_resize (sal_uInt32 nNewSize) rtl_str_hash_free (pNewHash); } -static int +static bool compareEqual (rtl_uString *pStringA, rtl_uString *pStringB) { if (pStringA == pStringB) |