diff options
Diffstat (limited to 'o3tl')
-rw-r--r-- | o3tl/inc/o3tl/sorted_vector.hxx | 5 |
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 ) |