projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a56a2fb
)
Use for_each alg for cleanup.
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 2 Jan 2006 04:05:02 +0000
(
04:05
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 2 Jan 2006 04:05:02 +0000
(
04:05
+0000)
shib-target/XMLRequestMapper.cpp
patch
|
blob
|
history
diff --git
a/shib-target/XMLRequestMapper.cpp
b/shib-target/XMLRequestMapper.cpp
index
9edf1da
..
1bc95d1
100644
(file)
--- a/
shib-target/XMLRequestMapper.cpp
+++ b/
shib-target/XMLRequestMapper.cpp
@@
-24,6
+24,7
@@
#include "internal.h"
+#include <algorithm>
#include <log4cpp/Category.hh>
using namespace std;
@@
-241,8
+242,7
@@
Override::Override(const DOMElement* e, Category& log, const Override* base) : m
Override::~Override()
{
delete m_acl;
- for (map<string,Override*>::iterator i=m_map.begin(); i!=m_map.end(); i++)
- delete i->second;
+ for_each(m_map.begin(),m_map.end(),cleanup<string,Override>);
}
pair<bool,bool> Override::getBool(const char* name, const char* ns) const