Re: C++ question about const

2015-04-25 Thread Scott Kostyshak
On Sat, Apr 25, 2015 at 3:42 PM, Vincent van Ravesteijn wrote: > Scott Kostyshak schreef op 22-4-2015 om 3:37: > > In many cases variables are defined const because they are not going to be > changed. This does not mean that it was not allowed to be changed by design. > > In this case, I would ju

Re: C++ question about const

2015-04-25 Thread Vincent van Ravesteijn
Scott Kostyshak schreef op 22-4-2015 om 3:37: My question is in regards to the patch I propose for #6173: http://www.lyx.org/trac/attachment/ticket/6173/0001-Update-previews-when-going-to-a-bookmark-6173.patch I move the definition of cur up because I need it before the return. I then need to pa

C++ question about const

2015-04-21 Thread Scott Kostyshak
My question is in regards to the patch I propose for #6173: http://www.lyx.org/trac/attachment/ticket/6173/0001-Update-previews-when-going-to-a-bookmark-6173.patch I move the definition of cur up because I need it before the return. I then need to pass it to notifyCursorLeavesOrEnters(), which req