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
This commit is contained in:
Angus Leeming 2005-02-14 15:28:45 +00:00
parent 96cdf4a91a
commit b9ec5a5146
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-02-14 Angus Leeming <leeming@lyx.org>
* math_rootinset.C (idxUpDown): Silence an MSVC compiler warning
by making the code more transparent.
2005-02-12 Georg Baum <Georg.Baum@post.rwth-aachen.de> 2005-02-12 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_gridinset.C (halign): fix '|' to the right of the last column * math_gridinset.C (halign): fix '|' to the right of the last column

View File

@ -82,7 +82,7 @@ void MathRootInset::normalize(NormalStream & os) const
bool MathRootInset::idxUpDown(LCursor & cur, bool up) 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) if (cur.idx() == target)
return false; return false;
cur.idx() = target; cur.idx() = target;