[Libreoffice-commits] core.git: jvmfwk/source

Rohan Kumar rohankanojia420 at gmail.com
Tue Mar 15 00:19:18 UTC 2016


 jvmfwk/source/fwkutil.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 20efe5ebcbc49ef3ea46bb13b8aec05c81b86308
Author: Rohan Kumar <rohankanojia420 at gmail.com>
Date:   Mon Mar 14 11:36:12 2016 +0530

    tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
    
    I replaced OSL_ASSERT() with standard C++ assert
    
    Change-Id: I92e07d62f3dfe2ad914c49e2b596aef28c35e225
    Reviewed-on: https://gerrit.libreoffice.org/23231
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>

diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx
index 591a12a..9c026de 100644
--- a/jvmfwk/source/fwkutil.cxx
+++ b/jvmfwk/source/fwkutil.cxx
@@ -82,10 +82,8 @@ bool isAccessibilitySupportDesired()
                 else if (strcmp((char*) arData, "false") == 0
                          || strcmp((char*) arData, "0") == 0)
                     retVal = false;
-#if OSL_DEBUG_LEVEL > 1
                 else
-                    OSL_ASSERT(0);
-#endif
+                    assert(0);
             }
             else if (dwType == REG_DWORD)
             {
@@ -93,10 +91,8 @@ bool isAccessibilitySupportDesired()
                     retVal = true;
                 else if (arData[0] == 0)
                     retVal = false;
-#if OSL_DEBUG_LEVEL > 1
                 else
-                    OSL_ASSERT(0);
-#endif
+                    assert(0);
             }
         }
     }


More information about the Libreoffice-commits mailing list