yes exactly :)<div><br></div><div>const QList<Something*>&</div><div><br></div><div>That way you make sure that the method won't do nasty stuff to what you're sending it, just like if it was a copy.</div>

<div><br></div><div>Aleix<br><br><div class="gmail_quote">On Tue, May 24, 2011 at 9:46 AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On 24.05.11 11:43:16, Olivier J. G. wrote:<br>
> Done.<br>
<br>
Not really :) Its a reference now, which does not make sense since the<br>
list is not modified. It should be a const-reference instead I think.<br>
<font color="#888888"><br>
Andreas<br>
</font><div><div></div><div class="h5"><br>
<br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br></div>