Commit c759206c by George Burgess IV Committed by Commit Bot

fix an instance of bugprone-unused-return-value

This new clang-tidy check fires when the result of a function like `unique_ptr.release()` is unused. Sometimes this is intentional, other times, it's not (e.g., the dev intended to `.reset()`). Bug: chromium:1134714 Change-Id: I9b6bc9e847e5c27d68707a4f33d37b225ded34fb Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2458188 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 5291cbad
...@@ -49,7 +49,7 @@ Error &Error::operator=(const Error &other) ...@@ -49,7 +49,7 @@ Error &Error::operator=(const Error &other)
} }
else else
{ {
mMessage.release(); mMessage.reset();
} }
return *this; return *this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment