<table><tr><td style="">aaronpuchert added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8953" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>It is indeed a mystery. Note that the member function isn't marked <tt style="background: #ebebeb; font-size: 13px;">const</tt>, which it probably should be. Adding the <tt style="background: #ebebeb; font-size: 13px;">const</tt> specifier produces a compiler error (about ambiguous function calls), as it should.</p>

<p>I think that either the method or the standalone function should go away, but which one? Right now the standalone function is used for the <tt style="background: #ebebeb; font-size: 13px;">QHash<VcsLocation,QByteArray></tt> members in <tt style="background: #ebebeb; font-size: 13px;">VcsDiffPrivate</tt>, the method doesn't seem to be used at all. (Removing the implementation doesn't produce linker errors for me.) However, the implementation of the member <tt style="background: #ebebeb; font-size: 13px;">operator==</tt> looks "more correct."</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8953" rel="noreferrer">https://phabricator.kde.org/D8953</a></div></div><br /><div><strong>To: </strong>kossebau, KDevelop<br /><strong>Cc: </strong>aaronpuchert, mwolff, kdevelop-devel<br /></div>