From 3daf253b7f4ed8243e3262faee35219335e3e088 Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Sun, 7 Mar 2021 17:31:43 +0100 Subject: Some emplace_back replacements (#5149) * replace push_back with emplace_back when a new object was created in the function call --- src/DeadlockDetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DeadlockDetect.cpp') diff --git a/src/DeadlockDetect.cpp b/src/DeadlockDetect.cpp index ac4cabd74..6c114897a 100644 --- a/src/DeadlockDetect.cpp +++ b/src/DeadlockDetect.cpp @@ -72,7 +72,7 @@ bool cDeadlockDetect::Start(int a_IntervalSec) void cDeadlockDetect::TrackCriticalSection(cCriticalSection & a_CS, const AString & a_Name) { cCSLock lock(m_CS); - m_TrackedCriticalSections.emplace_back(std::make_pair(&a_CS, a_Name)); + m_TrackedCriticalSections.emplace_back(&a_CS, a_Name); } -- cgit v1.2.3