summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ext
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2011-02-03 00:33:36 +0100
committerDavid Tardon <dtardon@redhat.com>2011-02-03 08:59:33 +0100
commit7ca07a15538f8c923e46b59125ef7acd30417302 (patch)
treea5cf37205e1604f6255d01b8cfb7e73807d06e0c /dbaccess/source/ext
parentcppcheck reduce scope of a variable (diff)
downloadcore-7ca07a15538f8c923e46b59125ef7acd30417302.tar.gz
core-7ca07a15538f8c923e46b59125ef7acd30417302.zip
replaced DGB_ASSERT with OSL_ENSURE
Diffstat (limited to 'dbaccess/source/ext')
-rw-r--r--dbaccess/source/ext/adabas/Acomponentmodule.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ext/adabas/Acomponentmodule.cxx b/dbaccess/source/ext/adabas/Acomponentmodule.cxx
index 76f8f113e99c..ae5330940da9 100644
--- a/dbaccess/source/ext/adabas/Acomponentmodule.cxx
+++ b/dbaccess/source/ext/adabas/Acomponentmodule.cxx
@@ -32,7 +32,7 @@
#include <tools/resmgr.hxx>
#include <svl/solar.hrc>
#include <comphelper/sequence.hxx>
-#include <tools/debug.hxx>
+#include <osl/diagnose.h>
#define ENTER_MOD_METHOD() \
::osl::MutexGuard aGuard(s_aMutex); \
@@ -90,12 +90,12 @@ namespace COMPMOD_NAMESPACE
// note that this method is not threadsafe, which counts for the whole class !
if (!m_pRessources && !m_bInitialized)
{
- DBG_ASSERT(m_sFilePrefix.Len(), "OModuleImpl::getResManager: no resource file prefix!");
+ OSL_ENSURE(m_sFilePrefix.Len(), "OModuleImpl::getResManager: no resource file prefix!");
// create a manager with a fixed prefix
ByteString aMgrName = m_sFilePrefix;
m_pRessources = ResMgr::CreateResMgr(aMgrName.GetBuffer());
- DBG_ASSERT(m_pRessources,
+ OSL_ENSURE(m_pRessources,
(ByteString("OModuleImpl::getResManager: could not create the resource manager (file name: ")
+= aMgrName
+= ByteString(")!")).GetBuffer());