From 629f29ce80c514507b469072a30e39ddb00be29a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 23 Oct 2003 15:06:52 +0000 Subject: [PATCH] * RowList_fwd.h: change list<> to vector<> to gain speed after suggestion from Alfredo git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7967 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 6 ++++++ src/RowList_fwd.h | 4 ++-- src/text.C | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4dc6c2b155..468b6d2d9e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ + +2003-10-23 André Pönitz + + * RowList_fwd.h: change list<> to vector<> to gain speed + after suggestion from Alfredo + 2003-10-23 Alfredo Braunstein * lyxtext.h: move the bidi stuff from here... diff --git a/src/RowList_fwd.h b/src/RowList_fwd.h index 8f79e3e50f..a86fae5e53 100644 --- a/src/RowList_fwd.h +++ b/src/RowList_fwd.h @@ -12,10 +12,10 @@ #ifndef ROW_LIST_FWD_H #define ROW_LIST_FWD_H -#include +#include class Row; -typedef std::list RowList; +typedef std::vector RowList; #endif diff --git a/src/text.C b/src/text.C index 29dc94d22d..739a230301 100644 --- a/src/text.C +++ b/src/text.C @@ -2014,8 +2014,8 @@ void LyXText::fullRebreak() void LyXText::metrics(MetricsInfo & mi, Dimension & dim) { - lyxerr << "LyXText::metrics: width: " << mi.base.textwidth - << " workWidth: " << workWidth() << "\nfont: " << mi.base.font << endl; + //lyxerr << "LyXText::metrics: width: " << mi.base.textwidth + // << " workWidth: " << workWidth() << "\nfont: " << mi.base.font << endl; //BOOST_ASSERT(mi.base.textwidth); //anchor_y_ = 0; -- 2.39.5