Cppcheck false positive? (eg 'PropEntry::operator=' should return 'PropEntry &')

julien2412 serval2412 at yahoo.fr
Thu Dec 27 06:53:09 PST 2012


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".
But since I'm still a C++ beginner... I may be wrong. 

Any idea?


View this message in context: http://nabble.documentfoundation.org/Cppcheck-false-positive-eg-PropEntry-operator-should-return-PropEntry-tp4026218.html
Sent from the Dev mailing list archive at Nabble.com.

More information about the LibreOffice mailing list