mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Compile fix gcc 2.95 + stlport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8395 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
29ef6251e8
commit
905dd033d3
@ -1,3 +1,7 @@
|
||||
2004-02-03 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
* math_nestinset.C: use const_cast to get to compile for stlport
|
||||
|
||||
2004-01-28 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||
|
||||
* math_hullinset.C: add using statements for std::ostream,
|
||||
|
@ -72,7 +72,7 @@ MathArray const & MathNestInset::cell(idx_type i) const
|
||||
void MathNestInset::getCursorPos(CursorSlice const & cur,
|
||||
int & x, int & y) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
MathArray const & ar = cur.cell();
|
||||
x = ar.xo() + ar.pos2x(cur.pos());
|
||||
y = ar.yo();
|
||||
@ -99,7 +99,7 @@ void MathNestInset::metrics(MetricsInfo const & mi) const
|
||||
|
||||
bool MathNestInset::idxNext(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (cur.idx() == cur.lastidx())
|
||||
return false;
|
||||
++cur.idx();
|
||||
@ -116,7 +116,7 @@ bool MathNestInset::idxRight(LCursor & cur) const
|
||||
|
||||
bool MathNestInset::idxPrev(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (cur.idx() == 0)
|
||||
return false;
|
||||
--cur.idx();
|
||||
@ -133,7 +133,7 @@ bool MathNestInset::idxLeft(LCursor & cur) const
|
||||
|
||||
bool MathNestInset::idxFirst(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (nargs() == 0)
|
||||
return false;
|
||||
cur.idx() = 0;
|
||||
@ -144,7 +144,7 @@ bool MathNestInset::idxFirst(LCursor & cur) const
|
||||
|
||||
bool MathNestInset::idxLast(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (nargs() == 0)
|
||||
return false;
|
||||
cur.idx() = cur.lastidx();
|
||||
@ -155,7 +155,7 @@ bool MathNestInset::idxLast(LCursor & cur) const
|
||||
|
||||
bool MathNestInset::idxHome(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (cur.pos() == 0)
|
||||
return false;
|
||||
cur.pos() = 0;
|
||||
@ -165,7 +165,7 @@ bool MathNestInset::idxHome(LCursor & cur) const
|
||||
|
||||
bool MathNestInset::idxEnd(LCursor & cur) const
|
||||
{
|
||||
BOOST_ASSERT(cur.inset() == this);
|
||||
BOOST_ASSERT(cur.inset() == const_cast<MathNestInset *>(this));
|
||||
if (cur.lastpos() == cur.lastpos())
|
||||
return false;
|
||||
cur.pos() = cur.lastpos();
|
||||
@ -202,7 +202,7 @@ void MathNestInset::drawSelection(PainterInfo & pi, int x, int y) const
|
||||
LCursor & cur = pi.base.bv->cursor();
|
||||
if (!cur.selection())
|
||||
return;
|
||||
if (cur.inset() != this)
|
||||
if (cur.inset() != const_cast<MathNestInset *>(this))
|
||||
return;
|
||||
CursorSlice & s1 = cur.selBegin();
|
||||
CursorSlice & s2 = cur.selEnd();
|
||||
|
Loading…
Reference in New Issue
Block a user