[Libreoffice-commits] .: dbaccess/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Apr 19 02:41:57 PDT 2011


 dbaccess/source/core/misc/dsntypes.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fcac156836f599eed3589b3e7d326900210eff94
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Apr 19 10:41:51 2011 +0100

    Wae: resolve dbgutil vs dbglevel

diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index e6f035d..98318ad 100644
--- a/dbaccess/source/core/misc/dsntypes.cxx
+++ b/dbaccess/source/core/misc/dsntypes.cxx
@@ -567,7 +567,7 @@ ODsnTypeCollection::TypeIterator::TypeIterator(const ODsnTypeCollection* _pConta
     ,m_nPosition(_nInitialPos)
 {
     OSL_ENSURE(m_pContainer, "ODsnTypeCollection::TypeIterator::TypeIterator : invalid container!");
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
     ++const_cast<ODsnTypeCollection*>(m_pContainer)->m_nLivingIterators;
 #endif
 }
@@ -577,7 +577,7 @@ ODsnTypeCollection::TypeIterator::TypeIterator(const TypeIterator& _rSource)
     :m_pContainer(_rSource.m_pContainer)
     ,m_nPosition(_rSource.m_nPosition)
 {
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
     ++const_cast<ODsnTypeCollection*>(m_pContainer)->m_nLivingIterators;
 #endif
 }
@@ -585,7 +585,7 @@ ODsnTypeCollection::TypeIterator::TypeIterator(const TypeIterator& _rSource)
 //-------------------------------------------------------------------------
 ODsnTypeCollection::TypeIterator::~TypeIterator()
 {
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 0
     --const_cast<ODsnTypeCollection*>(m_pContainer)->m_nLivingIterators;
 #endif
 }


More information about the Libreoffice-commits mailing list