diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-08-18 20:53:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-21 15:52:41 +0200 |
commit | 38fa44435a428685b4ac59ee98972a8521942225 (patch) | |
tree | 442600a651acb02d79bd531bcc4a47b40f7565e8 /svx | |
parent | e86def1f3f86731230a27926d61d525653f62c72 (diff) |
fix bogus always-true asserts
Most of these were converted from OSL_ASSERT
Change-Id: Ia95a758cdebf72ee80d00866644d92e6bb915071
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtable.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 3397653a2a3d..171a511e7e11 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -75,7 +75,7 @@ SvxDrawPage::~SvxDrawPage() throw() { if( !mrBHelper.bDisposed ) { - assert("SvxDrawPage must be disposed!"); + assert(!"SvxDrawPage must be disposed!"); acquire(); dispose(); } diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx index fbaba94c97e1..6bb2105988c3 100644 --- a/svx/source/xoutdev/xtable.cxx +++ b/svx/source/xoutdev/xtable.cxx @@ -194,7 +194,7 @@ void XPropertyList::Insert(std::unique_ptr<XPropertyEntry> pEntry, long nIndex) { if (!pEntry) { - assert("empty XPropertyEntry not allowed in XPropertyList"); + assert(!"empty XPropertyEntry not allowed in XPropertyList"); return; } @@ -209,12 +209,12 @@ void XPropertyList::Replace(std::unique_ptr<XPropertyEntry> pEntry, long nIndex) { if (!pEntry) { - assert("empty XPropertyEntry not allowed in XPropertyList"); + assert(!"empty XPropertyEntry not allowed in XPropertyList"); return; } if (!isValidIdx(nIndex)) { - assert("trying to replace invalid entry in XPropertyList"); + assert(!"trying to replace invalid entry in XPropertyList"); return; } @@ -225,7 +225,7 @@ void XPropertyList::Remove(long nIndex) { if (!isValidIdx(nIndex)) { - assert("trying to remove invalid entry in XPropertyList"); + assert(!"trying to remove invalid entry in XPropertyList"); return; } |