Skip to content

Commit

Permalink
iox-eclipse-iceoryx#495 Remove *this from ms/ns ctor
Browse files Browse the repository at this point in the history
Signed-off-by: Hintz Martin (XC-AD/ESW1-J1) <[email protected]>
  • Loading branch information
marthtz committed May 12, 2021
1 parent 741ac11 commit aec016c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ inline constexpr Duration::Duration(const struct itimerspec& value) noexcept
}

inline constexpr Duration::Duration(const std::chrono::milliseconds& value) noexcept
: Duration(Duration::fromMilliseconds(value.count()))
{
*this = Duration::fromMilliseconds(value.count());
}

inline constexpr Duration::Duration(const std::chrono::nanoseconds& value) noexcept
: Duration(Duration::fromNanoseconds(value.count()))
{
*this = Duration::fromNanoseconds(value.count());
}

inline Duration& Duration::operator=(const std::chrono::milliseconds& rhs) noexcept
Expand Down

0 comments on commit aec016c

Please sign in to comment.