Skip to content

Commit

Permalink
Clean up manipulatory assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Jan 11, 2024
1 parent ed5a0ca commit 2710d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/adiar/bdd/bdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace adiar

bdd& bdd::operator&= (bdd &&other)
{
__bdd&& temp = bdd_and(*this, other);
const __bdd temp = bdd_and(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand All @@ -108,7 +108,7 @@ namespace adiar

bdd& bdd::operator|= (bdd &&other)
{
__bdd&& temp = bdd_or(*this, other);
const __bdd temp = bdd_or(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand All @@ -120,7 +120,7 @@ namespace adiar

bdd& bdd::operator^= (bdd &&other)
{
__bdd&& temp = bdd_xor(*this, other);
const __bdd temp = bdd_xor(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand Down
6 changes: 3 additions & 3 deletions src/adiar/zdd/zdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace adiar

zdd& zdd::operator&= (zdd &&other)
{
__zdd&& temp = zdd_intsec(*this, other);
const __zdd temp = zdd_intsec(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand All @@ -141,7 +141,7 @@ namespace adiar

zdd& zdd::operator|= (zdd &&other)
{
__zdd&& temp = zdd_union(*this, other);
const __zdd temp = zdd_union(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand All @@ -158,7 +158,7 @@ namespace adiar

zdd& zdd::operator-= (zdd &&other)
{
__zdd&& temp = zdd_diff(*this, other);
const __zdd temp = zdd_diff(*this, other);
other.deref();
return (*this = std::move(temp));
}
Expand Down

0 comments on commit 2710d4f

Please sign in to comment.