>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

>> For cursor positions and such, you should definitely use
>> LyXParagraph::size_type. If you happen to need a signed version of
>> this, then you should define LyXParagraph::difference_type.

Angus> Jean-Marc, I've checked the code. It turns out (by chance!)
Angus> that the only stuff I changed to LyXParagraph::size_type does
Angus> indeed refer to cursor positions. The patch can, therefore, be
Angus> applied.

Angus> Perhaps it would make the code clearer if the name of this
Angus> variable was changed to LyXParagraph::position?

Well, size_type is the canonical name for all STL objects. For
example, an index into a string or vector is string::size_type or
vector::size type. Once you are use to it, it is natural that a
paragraph index is LyXParagraph::size_type.

JMarc

Reply via email to