From 1357910dd27662ee25d79250c15ff52cbf958755 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 12 Jan 2007 10:19:51 +0000 Subject: [PATCH] Add a const. A second const as in: InsetBase const * const nextinset = = nextInset(); is not possible because InsetBase::asInsetMath() is not const. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16660 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/dociterator.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dociterator.C b/src/dociterator.C index 5b43b85310..bb72fb6c2d 100644 --- a/src/dociterator.C +++ b/src/dociterator.C @@ -274,7 +274,7 @@ void DocIterator::forwardPos(bool ignorecollapsed) return; } - InsetBase * nextinset = nextInset(); + InsetBase * const nextinset = nextInset(); // jump over collapsables if they are collapsed // FIXME: the check for asInsetMath() shouldn't be necessary // but math insets do not return a sensible editable() state yet.