diff options
author | Jacek Wolszczak <shutdownrunner@gmail.com> | 2011-05-08 22:14:45 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-05-09 15:06:56 +0200 |
commit | 4cf350c27fbe9c84ec38daeffe2b57ebc515f8c2 (patch) | |
tree | de43a2b56eeb5717374c41844f90320502aaa76d /sw/source/core/doc/docglos.cxx | |
parent | ce0a87b004a37e9a2f2da41d6e811e9bdba82eda (diff) |
REPLACE DBG_stuff with OSL_ASSERT and OSL_FAIL
Diffstat (limited to 'sw/source/core/doc/docglos.cxx')
-rw-r--r-- | sw/source/core/doc/docglos.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/docglos.cxx b/sw/source/core/doc/docglos.cxx index 350bde67062c..74c1b361c890 100644 --- a/sw/source/core/doc/docglos.cxx +++ b/sw/source/core/doc/docglos.cxx @@ -52,8 +52,8 @@ using namespace ::com::sun::star; static void lcl_copyDocumentProperties( uno::Reference<document::XDocumentProperties> i_xSource, uno::Reference<document::XDocumentProperties> i_xTarget) { - DBG_ASSERT(i_xSource.is(), "null reference"); - DBG_ASSERT(i_xTarget.is(), "null reference"); + OSL_ENSURE(i_xSource.is(), "null reference"); + OSL_ENSURE(i_xTarget.is(), "null reference"); i_xTarget->setAuthor(i_xSource->getAuthor()); i_xTarget->setGenerator(i_xSource->getGenerator()); @@ -130,8 +130,8 @@ sal_Bool SwDoc::InsertGlossary( SwTextBlocks& rBlock, const String& rEntry, // entry document. // To be able to do this, we copy the document properties of the // target document to the glossary document -// DBG_ASSERT(GetDocShell(), "no SwDocShell"); // may be clipboard! - DBG_ASSERT(pGDoc->GetDocShell(), "no SwDocShell at glossary"); +// OSL_ENSURE(GetDocShell(), "no SwDocShell"); // may be clipboard! + OSL_ENSURE(pGDoc->GetDocShell(), "no SwDocShell at glossary"); if (GetDocShell() && pGDoc->GetDocShell()) { uno::Reference<document::XDocumentPropertiesSupplier> xDPS( GetDocShell()->GetModel(), uno::UNO_QUERY_THROW); |