From 56388a7ea91ef5b0e526a14bc7e1b00edca83202 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 4 Mar 2016 12:27:26 +0100 Subject: Probably better to not disable this cache in all debug modes (f59136a2ed1e3eb01cc5b62c5a7da07c34cbdfae "tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals" had changed it from OSL_DEBUG_LEVEL > 1 to > 0) Change-Id: I40714993fb55ec27b80d225cec28c64f2959ab73 --- sal/rtl/bootstrap.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sal') diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx index b56bfc16cde3..7f56dfcea4f0 100644 --- a/sal/rtl/bootstrap.cxx +++ b/sal/rtl/bootstrap.cxx @@ -677,12 +677,7 @@ void SAL_CALL rtl_bootstrap_args_close ( --that->_nRefCount; if (that->_nRefCount == 0) { - ::std::size_t nLeaking = 8; // only hold up to 8 files statically - -#if OSL_DEBUG_LEVEL > 0 // debug - nLeaking = 0; -#endif /* OSL_DEBUG_LEVEL */ - + std::size_t const nLeaking = 8; // only hold up to 8 files statically if (p_bootstrap_map->size() > nLeaking) { ::std::size_t erased = p_bootstrap_map->erase( that->_iniName ); -- cgit