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

Commit 2c5a8716 authored by Yi Kong's avatar Yi Kong
Browse files

graphics: Remove unnecessary std::move

Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: I26d488fb92bf3a9accc20d688da0408e6e19ca93
parent abda996e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -249,8 +249,7 @@ class ComposerClientReader {
        auto& data = mReturnData[displayLuts.display];
        for (auto& lut : displayLuts.luts) {
            if (lut.pfd.get() >= 0) {
                data.luts.push_back({lut.layer,
                                     std::move(ndk::ScopedFileDescriptor(lut.pfd.release())),
                data.luts.push_back({lut.layer, ndk::ScopedFileDescriptor(lut.pfd.release()),
                                     lut.lutProperties});
            }
        }