From b9ec5a5146559bddcd8262a395a87798e4a2bfa0 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 14 Feb 2005 15:28:45 +0000 Subject: [PATCH] Squash MSVC warning about comparison of DocIterator::idx_type and bool. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9627 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_rootinset.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index db5622f572..560261bfad 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2005-02-14 Angus Leeming + + * math_rootinset.C (idxUpDown): Silence an MSVC compiler warning + by making the code more transparent. + 2005-02-12 Georg Baum * math_gridinset.C (halign): fix '|' to the right of the last column diff --git a/src/mathed/math_rootinset.C b/src/mathed/math_rootinset.C index 646cbfa789..8822ae1bf5 100644 --- a/src/mathed/math_rootinset.C +++ b/src/mathed/math_rootinset.C @@ -82,7 +82,7 @@ void MathRootInset::normalize(NormalStream & os) const bool MathRootInset::idxUpDown(LCursor & cur, bool up) const { - bool target = !up; // up ? 0 : 1; + LCursor::idx_type const target = up ? 0 : 1; if (cur.idx() == target) return false; cur.idx() = target;