summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-21 15:07:10 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-21 18:05:02 +0200
commit5b89b1dd909f76154266cd51558e97152cff5f64 (patch)
tree50a23c8a5df578e784f5b515d97cc850fa8f2f2e /o3tl
parent5f91f8a368343d8921a01edb7359cd300892f09d (diff)
o3tl::sorted_vector::insert should take const parameter
Change-Id: I139f9d008770da94341b8e6c08c9247478aa186a
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/inc/o3tl/sorted_vector.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/o3tl/inc/o3tl/sorted_vector.hxx b/o3tl/inc/o3tl/sorted_vector.hxx
index 90aacbf11ac7..d8bceb72e39d 100644
--- a/o3tl/inc/o3tl/sorted_vector.hxx
+++ b/o3tl/inc/o3tl/sorted_vector.hxx
@@ -134,14 +134,13 @@ public:
return (ret.second) ? ret.first : end();
}
- void insert( sorted_vector<Value,Compare,Find> &rOther )
+ void insert(sorted_vector<Value,Compare,Find> const& rOther)
{
// optimisation for the rather common case that we are overwriting this with the contents
// of another sorted vector
if ( empty() )
{
- base_t::insert( begin_nonconst(),
- rOther.begin_nonconst(), rOther.end_nonconst() );
+ base_t::insert(begin_nonconst(), rOther.begin(), rOther.end());
}
else
for( const_iterator it = rOther.begin(); it != rOther.end(); ++it )