remove public method;

add a static_cast<>


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2827 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-01 12:23:00 +00:00
parent e597fc7ae4
commit e9baa06e51
4 changed files with 8 additions and 9 deletions

View File

@ -5,6 +5,12 @@
* math_fracbase.C: change parameter types to match MathInset
2001-10-01 André Pönitz <poenitz@gmx.net>
* math_cursor.[Ch]: remove local parInset() method
* math_macro.C: add a static_cast
2001-09-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* math_cursor.C: fix type mismatches with what was declared in

View File

@ -174,11 +174,6 @@ bool MathCursor::popRight()
}
MathInset * MathCursor::parInset(int i) const
{
return Cursor_[i].par_;
}
#if FILEDEBUG
void MathCursor::dump(char const *) const
@ -221,7 +216,7 @@ void MathCursor::dump(char const *) const {}
bool MathCursor::isInside(MathInset const * p) const
{
for (unsigned i = 0; i < Cursor_.size(); ++i)
if (parInset(i) == p)
if (Cursor_[i].par_ == p)
return true;
return false;
}

View File

@ -245,8 +245,6 @@ public:
///
pos_type last() const;
///
MathInset * parInset(int i) const;
///
MathMatrixInset * outerPar() const;
///
void seldump(char const * str) const;

View File

@ -119,7 +119,7 @@ void MathMacro::draw(Painter & pain, int x, int y) const
h += std::max(c.ascent(), lasc) + 5;
c.draw(pain, x + lwid, h);
char str[] = "#1:";
str[1] += i;
str[1] += static_cast<char>(i);
drawStr(pain, LM_TC_TEX, size(), x + 3, h, str);
h += std::max(c.descent(), ldes) + 5;
}