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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/UsageTests/ToStringVector.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2018-07-23 20:46:36 +0200
committerMartin Hořeňovský2018-07-23 20:46:42 +0200
commitc9de7dd12d2971c63f9d32ce5459eb98f2fec13d (patch)
tree4239c63c6115128636aae777f302e1716dfb81d6 /projects/SelfTest/UsageTests/ToStringVector.tests.cpp
parent52cbb507abdc039f9a6859781106d8855004666d (diff)
downloadcatch3-c9de7dd12d2971c63f9d32ce5459eb98f2fec13d.tar.gz
Optimize SourceLineInfo::operator< with short-circuiting
In case of 2 instances of SourceLineInfo constructed in the same file, they will have the same `file` pointer (even at O0). Thus, we can check if they are equal before calling potentially pointless `strcmp`.
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringVector.tests.cpp')
0 files changed, 0 insertions, 0 deletions