@@ -56,7 +56,6 @@ OrdPWMap::OrdPWMap(const Map& m) : pieces_() {
5656}
5757OrdPWMap::OrdPWMap (const OrdMapCollection& pieces)
5858 : pieces_(std::move(pieces)) {}
59- OrdPWMap::OrdPWMap (const OrdPWMap& pw) : pieces_(pw.pieces_) {}
6059
6160member_imp (OrdPWMap::Iterator, OrdPWMap::OrdMapCollection::const_iterator, it);
6261
@@ -102,11 +101,13 @@ bool OrdPWMap::operator==(const PWMapStrategy& other) const
102101{
103102 OrdPWMapCRef othr = static_cast <OrdPWMapCRef>(other);
104103
105- if (dom () != othr.dom ())
104+ if (dom () != othr.dom ()) {
106105 return false ;
106+ }
107107
108- if (pieces_ == othr.pieces_ )
108+ if (pieces_ == othr.pieces_ ) {
109109 return true ;
110+ }
110111
111112 OrdMapCollection short_pw = pieces_;
112113 OrdMapCollection long_pw = othr.pieces_ ;
@@ -225,7 +226,7 @@ void OrdPWMap::processAdd(const Map& m1, const Map& m2,
225226
226227PWMapStratPtr OrdPWMap::clone () const
227228{
228- return std::make_unique<OrdPWMap>(* this );
229+ return std::make_unique<OrdPWMap>(pieces_ );
229230}
230231
231232// PWMap functions -------------------------------------------------------------
@@ -418,11 +419,11 @@ PWMapStratPtr OrdPWMap::concatenation(const PWMapStrategy& other) const
418419 res.reserve (pieces_.size () + othr.pieces_ .size ());
419420
420421 if (isEmpty ()) {
421- return std::make_unique<OrdPWMap>(othr);
422+ return std::make_unique<OrdPWMap>(othr. pieces_ );
422423 }
423424
424425 if (other.isEmpty ()) {
425- return std::make_unique<OrdPWMap>(* this );
426+ return std::make_unique<OrdPWMap>(pieces_ );
426427 }
427428
428429 if (pieces_.back ().second .first < othr.pieces_ .front ().second .first ) {
@@ -600,7 +601,6 @@ PWMapStratPtr OrdPWMap::firstInv(const Set& subdom) const
600601 }
601602
602603 std::sort (res.begin (), res.end (), operator <);
603-
604604 return std::make_unique<OrdPWMap>(std::move (res));
605605}
606606
@@ -724,8 +724,10 @@ void OrdPWMap::processMapsOrd(
724724 ++si_prev;
725725 ++si_curr;
726726 }
727- if (indexes.empty ())
727+
728+ if (indexes.empty ()) {
728729 break ;
730+ }
729731 }
730732}
731733
@@ -765,8 +767,8 @@ PWMapStratPtr OrdPWMap::offsetDom(const PWMapStrategy& off) const
765767 Set ith_dom = off.image (t_m.dom ());
766768
767769 if (!ith_dom.isEmpty ()){
768- Map res_map (ith_dom, t_m.exp ());
769- Internal::emplaceBack (res, res_map);
770+ Map res_map (ith_dom, t_m.exp ());
771+ Internal::emplaceBack (res, res_map);
770772 }
771773 continue ;
772774 }
0 commit comments