https://bugs.documentfoundation.org/show_bug.cgi?id=90341
Bug ID: 90341
Summary: Easy Hack: Clean up excessive const_cast'ing
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs@lists.freedesktop.org
Reporter: sbergman@redhat.com
CC: libreoffice@lists.freedesktop.org
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.)
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Bug 90341] New: Easy Hack: Clean up excessive const_cast'ing · bugzilla-daemon
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.