Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Personally, I like the approach, although some details (like being
forced to pass the address of the lyxtext instead of hiding such
technicalities) make the code a bit more difficult to read.
Abdelrazak> Would you prefer to pass a reference instead?
Yes, less characters :) Actually an inline helper function would
probably be better that exposing text_metrics_[&foo][bar], at least in
my eyes.
Well, personally I prefer to use [] whenever possible and in particular
within BufferView which is the owner of the text_metrics_. It was
designed as a convenience operator at the end, wasn't it?
Abdel.