Make arguments const
This commit is contained in:
parent
e42c60d555
commit
8f6fac3cde
@ -45,11 +45,11 @@ void MultiFrame::MakeAllFramesInvalid() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MultiFrame::HasValidFrame() const noexcept {
|
bool MultiFrame::HasValidFrame() const noexcept {
|
||||||
return std::any_of(frames_.begin(), frames_.end(), [](auto &frame) { return frame.IsValid(); });
|
return std::any_of(frames_.begin(), frames_.end(), [](const auto &frame) { return frame.IsValid(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MultiFrame::HasInvalidFrame() const noexcept {
|
bool MultiFrame::HasInvalidFrame() const noexcept {
|
||||||
return std::any_of(frames_.rbegin(), frames_.rend(), [](auto &frame) { return !frame.IsValid(); });
|
return std::any_of(frames_.rbegin(), frames_.rend(), [](const auto &frame) { return !frame.IsValid(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOLINTNEXTLINE (bugprone-exception-escape)
|
// NOLINTNEXTLINE (bugprone-exception-escape)
|
||||||
|
Loading…
Reference in New Issue
Block a user