]> git.lyx.org Git - features.git/commitdiff
remove public method;
authorAndré Pönitz <poenitz@gmx.net>
Mon, 1 Oct 2001 12:23:00 +0000 (12:23 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 1 Oct 2001 12:23:00 +0000 (12:23 +0000)
add a static_cast<>

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2827 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_cursor.C
src/mathed/math_cursor.h
src/mathed/math_macro.C

index 213091f596ef85648ce1cec4edd55e22d98be3e2..156d8d937fb54e75ffcb9271b8e17a907be6f86c 100644 (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
index a9ae33e68bedf4bc55310b36f326ccd5bd63b536..ef4472dda5168e901294819a9d193fec6772520b 100644 (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;
 }
index 7137547ad5c46dba0e94b1e0204c09558f9e414a..d37b66a55430a67dd8e0a51208aefd860d211062 100644 (file)
@@ -245,8 +245,6 @@ public:
        ///  
        pos_type last() const;
        ///
-       MathInset * parInset(int i) const;
-       ///
        MathMatrixInset * outerPar() const;
        ///
        void seldump(char const * str) const;
index b55febbb7d1ed1848bc0c71baa28fff8050f6b3a..9dcf8a9aecca0fc0924507df3575e2d843546b95 100644 (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;
                }