You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Scott Cantor (JIRA)" <ji...@apache.org> on 2010/12/07 19:34:19 UTC

[jira] Updated: (SANTUARIO-89) DSIGReferenceList::empty() and not clearing references

     [ https://issues.apache.org/jira/browse/SANTUARIO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor updated SANTUARIO-89:
----------------------------------

    Fix Version/s: C++ 1.6.0

> DSIGReferenceList::empty() and not clearing references
> ------------------------------------------------------
>
>                 Key: SANTUARIO-89
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-89
>             Project: Santuario
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: C++ 1.2.0
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Scott Cantor
>            Assignee: XML Security Developers Mailing List
>             Fix For: C++ 1.6.0
>
>
> There's a mistake in the empty() method:
> bool DSIGReferenceList::empty() {
> 	// Clear out the list - note we do NOT delete the reference elements
> 	return m_referenceList.empty();
> }
> I'm not sure why it's not deleting the reference elements. But empty() is not a
> mutating method, and will not clear the vector. That's what erase() or clear()
> do. empty() is just a size check.
> Of course, if the references are not actually cleared, seems like you wouldn't
> want to clear the vector, but if you do, this isn't the right method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.