From 7f1781d623806cbf57fbbc67d612a16614a0b262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 1 Mar 2001 20:25:38 +0000 Subject: [PATCH] small stuff git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1659 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 6 ++++++ src/mathed/math_iter.C | 2 +- src/mathed/math_iter.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 568373aab6..e41d600a59 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,5 +1,11 @@ 2001-03-01 Lars Gullik Bjønnes + * math_iter.h: add comment on virtual destructor + + * math_iter.C (Delete): make c const + + * math_parinset.C (Metrics): cleanup indent. make one string const. + * math_inset.C (size): move out of line (incSize): ditto diff --git a/src/mathed/math_iter.C b/src/mathed/math_iter.C index 46da31d267..39e32ea0e7 100644 --- a/src/mathed/math_iter.C +++ b/src/mathed/math_iter.C @@ -340,7 +340,7 @@ bool MathedIter::Delete() return false; int shift = 0; - byte c = GetChar(); + byte const c = GetChar(); if (c >= ' ') { if (MathIsFont((*array)[pos - 1]) && (*array)[pos + 1] < ' ') { diff --git a/src/mathed/math_iter.h b/src/mathed/math_iter.h index 22b0a0e9d2..2706fa2bb6 100644 --- a/src/mathed/math_iter.h +++ b/src/mathed/math_iter.h @@ -50,7 +50,7 @@ public: /// explicit MathedIter(MathedArray *); - /// + /// Virtual base destructor. virtual ~MathedIter() {} /// bool goNextCode(MathedTextCodes);