Avoid recalculating string-literal size on root tracker construction

This is a tiiiiiiny performance optimization, but it's free.
This commit is contained in:
Martin Hořeňovský 2020-07-27 20:08:44 +02:00
parent ef92178058
commit d218d6f9e2
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ namespace TestCaseTracking {
ITracker& TrackerContext::startRun() {
m_rootTracker = std::make_shared<SectionTracker>( NameAndLocation( "{root}", CATCH_INTERNAL_LINEINFO ), *this, nullptr );
using namespace std::string_literals;
m_rootTracker = std::make_shared<SectionTracker>( NameAndLocation( "{root}"s, CATCH_INTERNAL_LINEINFO ), *this, nullptr );
m_currentTracker = nullptr;
m_runState = Executing;
return *m_rootTracker;