Skip to content

Commit

Permalink
This pair construction is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 19, 2021
1 parent 7e57794 commit 21aaa8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialization/ucs4_iterator_base.hpp
Expand Up @@ -33,15 +33,15 @@ namespace ucs4
iterator_base(const string_type& str)
: current_char(0)
, string_end(str.end())
, current_substr(std::pair(str.begin(), str.begin()))
, current_substr(str.begin(), str.begin())
{
update();
}

iterator_base(typename string_type::const_iterator const& begin, typename string_type::const_iterator const& end)
: current_char(0)
, string_end(end)
, current_substr(std::pair(begin, begin))
, current_substr(begin, begin)
{
update();
}
Expand Down

0 comments on commit 21aaa8b

Please sign in to comment.