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

Commit ba98f7c5 authored by Dan Albert's avatar Dan Albert
Browse files

Fix pessimizing move.

Using std::move here prevents the compiler from performing copy
elision.

Change-Id: I80e98229359bdff5873be602d85ae6c502c67c1d
(cherry picked from commit 986d3f2e)
parent 72c982fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ std::unique_ptr<Node> inflate(const void* data, size_t dataLen, SourceLogger* lo
            }
        }
    }
    return std::move(root);
    return root;
}

Node::Node(NodeType type) : type(type), parent(nullptr), lineNumber(0), columnNumber(0) {