[Libreoffice-commits] core.git: sal/rtl

Stephan Bergmann sbergman at redhat.com
Fri Mar 4 11:29:50 UTC 2016


 sal/rtl/bootstrap.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 56388a7ea91ef5b0e526a14bc7e1b00edca83202
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Mar 4 12:27:26 2016 +0100

    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

diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index b56bfc1..7f56dfc 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 );


More information about the Libreoffice-commits mailing list