variable scoping error
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 18 May 2003 22:25:39 +0000 (22:25 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 18 May 2003 22:25:39 +0000 (22:25 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@445 cb58f699-b61c-0410-a6fe-9272a202ed29

shib/XMLMetadata.cpp

index 6b8f6da..ef85bf7 100644 (file)
@@ -134,8 +134,8 @@ XMLMetadataImpl::OriginSite::~OriginSite()
         delete const_cast<IContactInfo*>(*i);
     for (vector<const IAuthority*>::iterator j=m_handleServices.begin(); j!=m_handleServices.end(); j++)
         delete const_cast<IAuthority*>(*j);
-    for (j=m_attributes.begin(); j!=m_attributes.end(); j++)
-        delete const_cast<IAuthority*>(*j);
+    for (vector<const IAuthority*>::iterator k=m_attributes.begin(); k!=m_attributes.end(); k++)
+        delete const_cast<IAuthority*>(*k);
 }
 
 XMLMetadataImpl::XMLMetadataImpl(const char* pathname)