On Wed, Jun 14, 2006 at 04:39:13PM +0200, Peter Kümmel wrote: > > Looks good. One thing that strikes me though is that > > you should define a local variable > > Session & session = LyX::ref().session(); > > rather than waste cycles by repeatedly accessing > > session(). > > > > Angus > > > > Does not the compiler optimize such code,
Possibly. > or is this too optimistic? Possibly. Note that in this case you'd probably end up with a smaller count of non-whitespace characters which is usually an advantage. Andre'