Find C++ source files that need a suspiciously high amount of const_cast, then see if some of them are due to poor design that can be improved (by e.g. making relevant member functions const, making relevant member variables mutable, making relevant variables pointer to non-const).
(You can use something like
> git grep --word-regexp --count const_cast | sort --numeric-sort --key=2 --field-separator=:
to get the high-scorers of const_cast usage.)
Migrating Whiteboard tags to Keywords: (easyHack, difficultyBeginner, skillCpp, topicCleanup)
Takeshi Abe committed a patch related to this issue.
It has been pushed to "master":
tdf#90341 Clean up excessive const_cast'ing
It will be available in 5.2.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC)
Please be aware, that this easyhack is considered an important but large scale cosmetic change as described in https://wiki.documentfoundation.org/Development/LargeScaleChanges
It was in decided by the ESC to close this kind of easyhacks, and send them directly as mail, to new contributors.
Please do not submit patches with many files !!
This easyhacks should/will be opened, when we have a window to do largescale changes.
Changing status: NEEDINFO -> NEW
Adding keyword 'needsDevEval'