From a95ef64241069b387d8a7db527498b1863198398 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2005 12:17:50 +0000 Subject: [PATCH] fix warning when assertions are disabled git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10032 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_hullinset.C | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 97770fc8a6..2a91b72e91 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2005-06-08 Jean-Marc Lasgouttes + + * math_hullinset.C (label): avoid warning when assertions are + disabled. + 2005-06-07 Georg Baum * math_parser.h (latexkeys): new member requires diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 2bd78e39cb..f7c0902ea2 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -387,8 +387,7 @@ void MathHullInset::notifyCursorLeaves(LCursor & cur) string MathHullInset::label(row_type row) const { - row_type n = nrows(); - BOOST_ASSERT(row < n); + BOOST_ASSERT(row < nrows()); return label_[row]; }