aboutsummaryrefslogtreecommitdiff
path: root/paludis/python_hooks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/python_hooks.cc')
-rw-r--r--paludis/python_hooks.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/python_hooks.cc b/paludis/python_hooks.cc
index be68e43c8..93d3afd28 100644
--- a/paludis/python_hooks.cc
+++ b/paludis/python_hooks.cc
@@ -185,7 +185,7 @@ PyHookFile::run(const Hook & hook) const
hook_env["HOOK"] = hook.name();
hook_env["HOOK_FILE"] = stringify(file_name());
- for (Hook::Iterator x(hook.begin()), x_end(hook.end()) ; x != x_end ; ++x)
+ for (Hook::ConstIterator x(hook.begin()), x_end(hook.end()) ; x != x_end ; ++x)
hook_env[x->first] = x->second;
bp::object result;
@@ -276,7 +276,7 @@ PyHookFile::_add_dependency_class(const Hook & hook, DirectedGraph<std::string,
hook_env["HOOK"] = hook.name();
hook_env["HOOK_FILE"] = stringify(file_name());
- for (Hook::Iterator x(hook.begin()), x_end(hook.end()) ; x != x_end ; ++x)
+ for (Hook::ConstIterator x(hook.begin()), x_end(hook.end()) ; x != x_end ; ++x)
hook_env[x->first] = x->second;
bp::object result;