summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/funcuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/funcuno.cxx')
-rw-r--r--sc/source/ui/unoobj/funcuno.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx
index 75fcb8431a98..f49a2402ed85 100644
--- a/sc/source/ui/unoobj/funcuno.cxx
+++ b/sc/source/ui/unoobj/funcuno.cxx
@@ -31,7 +31,6 @@
-#include <tools/debug.hxx>
#include <sfx2/app.hxx>
#include <svl/itemprop.hxx>
@@ -136,19 +135,19 @@ ScTempDocCache::ScTempDocCache() :
ScTempDocCache::~ScTempDocCache()
{
- DBG_ASSERT( !bInUse, "ScTempDocCache dtor: bInUse" );
+ OSL_ENSURE( !bInUse, "ScTempDocCache dtor: bInUse" );
delete pDoc;
}
void ScTempDocCache::SetDocument( ScDocument* pNew )
{
- DBG_ASSERT( !pDoc, "ScTempDocCache::SetDocument: already set" );
+ OSL_ENSURE( !pDoc, "ScTempDocCache::SetDocument: already set" );
pDoc = pNew;
}
void ScTempDocCache::Clear()
{
- DBG_ASSERT( !bInUse, "ScTempDocCache::Clear: bInUse" );
+ OSL_ENSURE( !bInUse, "ScTempDocCache::Clear: bInUse" );
delete pDoc;
pDoc = NULL;
}