Wrong numbering (eg include/svx/xdef.hxx)

Noel Grandin noelgrandin at gmail.com
Tue Apr 25 07:00:26 UTC 2023


On Mon, 24 Apr 2023 at 13:33, Julien Nabet <serval2412 at yahoo.fr> wrote:

> Hello,
>
> I noticed in include/svx/xdef.hxx that the numbering was wrong from
> XATTRSET_LINE (line 105)
>
> 103  constexpr TypedWhichId<XLineCapItem> XATTR_LINECAP
> (XATTR_LINE_FIRST + 12); /* V3: 1012 */
> 104  constexpr sal_uInt16 XATTR_LINE_LAST        (XATTR_LINECAP);
> 105  constexpr TypedWhichId<XLineAttrSetItem> XATTRSET_LINE
> (XATTR_LINE_LAST + 1);   /* V3: 1017  V2: 1017 */
>
>
The actualy numbering is fine, although the comments are wrong.

>
> 2) Are "V2" "V3" numbers in comments useful or can we remove them to
> just keep the last real number ?
>
>
The comments are no longer of any use and can be remove (IMO).

> Remark: ideally, I'd like being able to do this in gdb:
>
>
> (gdb) p SDRATTR_TABLE_FIRST
> No symbol "SDRATTR_TABLE_FIRST" in current context.
>
>
>
no idea why that doesn't work, maybe the linker is stripping unused symbols.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20230425/e9e97785/attachment.htm>


More information about the LibreOffice mailing list