<br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 9:53 AM, julien2412 <span dir="ltr"><<a href="mailto:serval2412@yahoo.fr" target="_blank">serval2412@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Cppcheck reports this kind of thing:<br>
[sd/source/filter/ppt/propread.hxx:116]: (style) 'PropEntry::operator='<br>
should return 'PropEntry &'.<br>
    116     const PropEntry& operator=(const PropEntry& rPropEntry);<br>
<br>
Indeed, I understand this cppcheck report, if you assign a variable, the<br>
result can't be considered as "const".<br></blockquote><br></div>Yes, the assignment operator should always return a non-const reference of self.  Cppcheck is correct on this.<br><br>Kohei<br>