Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces/catch_interfaces_reporter.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-07-28 09:24:57 +0200
committerMartin Hořeňovský2020-07-28 09:24:57 +0200
commitd090074da7da0bf8976c6c82cb7ae0bbb61c6af8 (patch)
treed17289fbb02a4e6a0fc7eea905cb494fb2eae705 /src/catch2/interfaces/catch_interfaces_reporter.cpp
parentd218d6f9e27afc718cef196fb63d06ca0ce21873 (diff)
downloadcatch3-d090074da7da0bf8976c6c82cb7ae0bbb61c6af8.tar.gz
Devirtualize handling of ReporterPreferences
The new scheme is that there is one protected member instance of `ReporterPreferences` in the `IStreamingReporter` base class, and derived classes can modify it to express their own preferences. Retrieving the preferences is now a non-virtual operation, which makes it much cheaper to read them frequently. Previously, we avoided doing so by caching the preferences in another variable, but we still read them at least once per test case run.
Diffstat (limited to 'src/catch2/interfaces/catch_interfaces_reporter.cpp')
0 files changed, 0 insertions, 0 deletions