Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit dc7a382

Browse files
committed
Tidy
1 parent acf1592 commit dc7a382

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

impeller/renderer/backend/gles/test/surface_gles_unittests.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ TEST_P(SurfaceGLESTest, CanWrapNonZeroFBO) {
2525
*(surface->GetRenderTarget().GetColorAttachments().at(0).texture));
2626
auto wrapped = texture.GetFBO();
2727
ASSERT_TRUE(wrapped.has_value());
28+
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
2829
ASSERT_EQ(wrapped.value(), fbo);
2930
}
3031

impeller/renderer/backend/gles/texture_gles.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ std::shared_ptr<TextureGLES> TextureGLES::WrapTexture(
163163
VALIDATION_LOG << "Cannot wrap a non-texture handle.";
164164
return nullptr;
165165
}
166-
auto texture = std::shared_ptr<TextureGLES>(new TextureGLES(
167-
std::move(reactor), desc, std::nullopt, std::move(external_handle)));
166+
auto texture = std::shared_ptr<TextureGLES>(
167+
new TextureGLES(std::move(reactor), desc, std::nullopt, external_handle));
168168
if (!texture->IsValid()) {
169169
return nullptr;
170170
}

0 commit comments

Comments
 (0)