Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f168dcdd authored by Ryan Prichard's avatar Ryan Prichard
Browse files

[RESTRICT AUTOMERGE] SF: Call clear() instead of empty()

empty() returns bool and doesn't do anything. After upgrading libc++,
discarding the result of empty() becomes an error because the function
is marked with [[nodiscard]] in C++20 mode.

Bug: 175635923
Test: treehugger
Change-Id: I0dddc668fee3637a5e7c88925c522f04539abeba
parent a1d58879
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ void SurfaceInterceptorTest::backgroundBlurRadiusUpdate(Transaction& t) {
}

void SurfaceInterceptorTest::blurRegionsUpdate(Transaction& t) {
    BLUR_REGIONS_UPDATE.empty();
    BLUR_REGIONS_UPDATE.clear();
    BLUR_REGIONS_UPDATE.push_back(BlurRegion());
    t.setBlurRegions(mBGSurfaceControl, BLUR_REGIONS_UPDATE);
}