aboutsummaryrefslogtreecommitdiff
path: root/ruby/environment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/environment.cc')
-rw-r--r--ruby/environment.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/environment.cc b/ruby/environment.cc
index 20a6c7b9b..dd04bce35 100644
--- a/ruby/environment.cc
+++ b/ruby/environment.cc
@@ -188,7 +188,7 @@ namespace
{
tr1::shared_ptr<const DestinationsSet> dc (value_to_environment(self)->default_destinations());
VALUE result(rb_ary_new());
- for (DestinationsSet::Iterator i(dc->begin()), i_end(dc->end()) ; i != i_end ; ++i)
+ for (DestinationsSet::ConstIterator i(dc->begin()), i_end(dc->end()) ; i != i_end ; ++i)
rb_ary_push(result, repository_to_value(*i));
return result;