Use class template argument deduction for locks

This commit is contained in:
seelabs
2019-08-06 14:16:01 -07:00
parent 4076b6d92e
commit 5d1728cc96
104 changed files with 563 additions and 635 deletions

View File

@@ -202,7 +202,7 @@ disallowRenegotiation (SSL const* ssl, bool isNew)
};
static StaticData sd;
std::lock_guard <std::mutex> lock (sd.lock);
std::lock_guard lock (sd.lock);
auto const expired (sd.set.clock().now() - std::chrono::minutes(4));
// Remove expired entries