Skip to content
Commit ed826e26 authored by Jonathan Poelen's avatar Jonathan Poelen Committed by Christoph Cullmann
Browse files

inline some function of StateData and takes captures by rvalue (highlighter_benchmark 2.5% faster)

Inline some function of StateData and takes captures by rvalue to reduce copies (highlighter_benchmark 2.5% faster)

In addition:

- `Q_ASSERT(!isEmpty())` is removed because it duplicates the assertion in `m_contextStack.last()`.
- `QPair` is replaced by an internal structure (`StackValue`) to have more explicit names than first and second. This is also slightly more efficient.
parent 06d7258d
Pipeline #330248 passed with stage
in 7 minutes and 22 seconds
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