On Thu, Dec 27, 2012 at 9:53 AM, julien2412 <serval2412@yahoo.fr> wrote:
Hello,
Cppcheck reports this kind of thing:
[sd/source/filter/ppt/propread.hxx:116]: (style) 'PropEntry::operator='
should return 'PropEntry &'.
116 const PropEntry& operator=(const PropEntry& rPropEntry);
Indeed, I understand this cppcheck report, if you assign a variable, the
result can't be considered as "const".
Yes, the assignment operator should always return a non-const reference of
self. Cppcheck is correct on this.
Kohei
Context
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.