diff options
author | Zufu Liu <unknown> | 2021-06-21 07:31:12 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-06-21 07:31:12 +1000 |
commit | c728c19ed80302772be1c32c6c842aa30839c152 (patch) | |
tree | 1e6914267daf04a12d584665ac76ec2f6cc6c624 /src/PositionCache.cxx | |
parent | d886dfe0a9d5a3d92a5e9451dcbf30f0b3999357 (diff) | |
download | scintilla-mirror-c728c19ed80302772be1c32c6c842aa30839c152.tar.gz |
Avoid extra lookup for mapReprs.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index d3347248b..285bf2816 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -566,7 +566,7 @@ void SpecialRepresentations::SetRepresentationAppearance(std::string_view charBy // Not present so fail return; } - mapReprs[key].appearance = appearance; + it->second.appearance = appearance; } } @@ -578,8 +578,8 @@ void SpecialRepresentations::SetRepresentationColour(std::string_view charBytes, // Not present so fail return; } - mapReprs[key].appearance = mapReprs[key].appearance | RepresentationAppearance::Colour; - mapReprs[key].colour = colour; + it->second.appearance = it->second.appearance | RepresentationAppearance::Colour; + it->second.colour = colour; } } |