Skip to content
Commit d3354588 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Tomaz Canabrava
Browse files

Use smart pointers for color schemes.

Also uses weak pointers in the cache in ViewManager, to avoid having
them loaded for longer than necessary.

It takes less than a millisecond to load them, and it is nice to pick up
new changes from disk. But we don't want to do it for those currently
used by code elsewhere, so we still cache them with a weak_ptr that will
expire once all other code is done with it.
parent 295435d8
Pipeline #97852 passed with stage
in 1 minute and 53 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