From 72e49fbb67f36a8b6fee0642bca58a692844c409 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 19 Oct 2008 09:23:46 +0000 Subject: [PATCH] remove unused variables. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26961 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 6693e6297b..5c8c4dd4fd 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1313,10 +1313,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) cutSelection(cur, false, false); cur.clearSelection(); - Font const old_font = cur.real_current_font; docstring::const_iterator cit = cmd.argument().begin(); - docstring::const_iterator end = cmd.argument().end(); + docstring::const_iterator const end = cmd.argument().end(); for (; cit != end; ++cit) bv->translateAndInsert(*cit, this, cur); @@ -1873,8 +1872,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, { LASSERT(cur.text() == this, /**/); - Font const & font = cur.real_current_font; - FontInfo const & fontinfo = font.fontInfo(); + FontInfo const & fontinfo = cur.real_current_font.fontInfo(); bool enable = true; InsetCode code = NO_CODE; -- 2.39.2