From 38fa44435a428685b4ac59ee98972a8521942225 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 18 Aug 2017 20:53:27 +0200 Subject: fix bogus always-true asserts Most of these were converted from OSL_ASSERT Change-Id: Ia95a758cdebf72ee80d00866644d92e6bb915071 --- svx/source/unodraw/unopage.cxx | 2 +- svx/source/xoutdev/xtable.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'svx') 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 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 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; } -- cgit