Review Request 111796: Avoid endless recursions in TemplateDeclaration::setSpecializedFrom

Andreas Pakulat apaku at gmx.de
Tue Jul 30 12:39:09 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111796/
-----------------------------------------------------------

Review request for KDevelop.


Description
-------

Avoid endless recursions in TemplateDeclaration::setSpecializedFrom

Having two template specializations with the same signature causes an
endless recursion here. I don't see a reason why a TemplateDeclaration
should update its 'specializedFrom' stuff if that already is up-to-date.
So in the case the other->specializedFrom.data() is already what this
declaration has, there's simply nothing to do.


Diffs
-----

  languages/cpp/cppduchain/templatedeclaration.cpp b35ba13a0eacb5157a921cf96fdc22c091f625e1 

Diff: http://git.reviewboard.kde.org/r/111796/diff/


Testing
-------


Thanks,

Andreas Pakulat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130730/75489e17/attachment.html>


More information about the KDevelop-devel mailing list