From 75d1fb687425390a42a8768ef1560e8f2880fbb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Fri, 24 May 2002 10:01:07 +0000 Subject: [PATCH] include vector and add a using statement git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4196 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 7 +++++-- src/mathed/math_autocorrect.C | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 5e7dfffe2f..516e370136 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,6 @@ +2002-05-24 Lars Gullik Bjønnes + + * math_autocorrect.C: include vector and add a using statement. 2002-05-23 André Pönitz @@ -10,7 +13,7 @@ * formula.C: * formulabase.C: LyXView moved into frontends/ - + 2002-05-23 John Levon * formula.C: @@ -34,7 +37,7 @@ * math_unknowninset.C: * math_xdata.C: * math_xyarrowinset.C: move Painter to frontends/ - + 2002-05-22 Lars Gullik Bjønnes * math_exintinset.C: use more specific smart_ptr header. diff --git a/src/mathed/math_autocorrect.C b/src/mathed/math_autocorrect.C index 5d371a6ee8..63315bc651 100644 --- a/src/mathed/math_autocorrect.C +++ b/src/mathed/math_autocorrect.C @@ -10,12 +10,13 @@ #include #include +#include using std::ifstream; using std::istream; using std::ostream; using std::endl; - +using std::vector; namespace { @@ -30,11 +31,11 @@ public: /// void write(ostream & os) const; private: - /// + /// MathAtom from1_; - /// + /// char from2_; - /// + /// MathAtom to_; }; @@ -98,17 +99,17 @@ ostream & operator<<(ostream & os, Correction & corr) class Corrections { public: - /// + /// typedef vector::const_iterator const_iterator; - /// + /// Corrections() {} - /// + /// void insert(const Correction & corr) { data_.push_back(corr); } /// bool correct(MathAtom & at, char c) const; private: - /// - vector data_; + /// + vector data_; }; -- 2.39.2