From: Abdelrazak Younes Date: Wed, 8 Nov 2006 11:38:51 +0000 (+0000) Subject: * getPos(): add const attribute to BufferView. X-Git-Tag: 1.6.10~11982 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f31ea3e1577d1d7295a05d4d026c1fdb9205f87d;p=features.git * getPos(): add const attribute to BufferView. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15804 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/bufferview_funcs.C b/src/bufferview_funcs.C index 52ccfb6c8a..1ad64cb27c 100644 --- a/src/bufferview_funcs.C +++ b/src/bufferview_funcs.C @@ -202,7 +202,7 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit, } -Point getPos(BufferView & bv, DocIterator const & dit, bool boundary) +Point getPos(BufferView const & bv, DocIterator const & dit, bool boundary) { CursorSlice const & bot = dit.bottom(); CoordCache::ParPosCache::const_iterator cache_it = diff --git a/src/bufferview_funcs.h b/src/bufferview_funcs.h index c13651a3e9..c2268f8a29 100644 --- a/src/bufferview_funcs.h +++ b/src/bufferview_funcs.h @@ -38,7 +38,7 @@ bool string2font(std::string const & data, LyXFont & font, bool & toggle); */ std::string const freefont2string(); -Point getPos(BufferView & bv, DocIterator const & dit, bool boundary); +Point getPos(BufferView const & bv, DocIterator const & dit, bool boundary); enum CurStatus { CUR_INSIDE,