[Bug 90341] New: Easy Hack: Clean up excessive const_cast'ing

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Mar 29 23:50:04 PDT 2015


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 at lists.freedesktop.org
          Reporter: sbergman at redhat.com
                CC: libreoffice at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150330/81b91295/attachment.html>


More information about the LibreOffice mailing list