Skip to content

Conversation

@tml1024
Copy link
Contributor

@tml1024 tml1024 commented Jan 6, 2026

…letter

Such are reserved for the C++ implementation.

It's typical. A day after me complaining about the bad habit of using initial underscores in https://gerrit.libreoffice.org/c/core/+/196572 , I notice that I did it myself just a week or so earlier here, in the freshly written RecentFiles class.

Here in online the convention to use an initial underscore for private class members comes from Poco. Ideally we should get rid of all of it. But that will take time. Until then at least we shouldn't use identifiers starting with an undersore and an uppercase letter. Such are definitely reserved. (Identifiers starting with a single underscore and a lowercase letter are apparently OK, but as it is easy to forget exactly what is reserved, IMNSHO it is best to avoid them, too.)

Change-Id: I645eef09b5b44d8301b98b0d537d1061875b950f

  • Resolves: #
  • Target version: main

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

…letter

Such are reserved for the C++ implementation.

It's typical. A day after me complaining about the bad habit of using
initial underscores in https://gerrit.libreoffice.org/c/core/+/196572
, I notice that I did it myself just a week or so earlier here, in the
freshly written RecentFiles class.

Here in online the convention to use an initial underscore for private
class members comes from Poco. Ideally we should get rid of all of
it. But that will take time. Until then at least we shouldn't use
identifiers starting with an undersore and an uppercase letter. Such
are definitely reserved. (Identifiers starting with a single
underscore and a lowercase letter are apparently OK, but as it is easy
to forget exactly what is reserved, IMNSHO it is best to avoid them,
too.)

Signed-off-by: Tor Lillqvist <[email protected]>
Change-Id: I645eef09b5b44d8301b98b0d537d1061875b950f
Copy link
Contributor

@codewithvk codewithvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@github-project-automation github-project-automation bot moved this from To Review to To Test in Collabora Online Jan 6, 2026
@codewithvk codewithvk merged commit 838e658 into distro/collabora/coda-25.04 Jan 6, 2026
3 checks passed
@codewithvk codewithvk deleted the private/tml/I645eef09b5b44d8301b98b0d537d1061875b950f branch January 6, 2026 08:16
@github-project-automation github-project-automation bot moved this from To Test to Done in Collabora Online Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants