1
1
Fork 0
forked from suyu/suyu

externals: microprofile: Eliminate variable shadowing

This commit is contained in:
Morph 2022-05-26 21:05:06 -04:00
parent c1bd602e4c
commit d0328f49f1

View file

@ -1246,7 +1246,7 @@ struct MicroProfileScopeLock
{ {
bool bUseLock; bool bUseLock;
std::recursive_mutex& m; std::recursive_mutex& m;
MicroProfileScopeLock(std::recursive_mutex& m) : bUseLock(g_bUseLock), m(m) MicroProfileScopeLock(std::recursive_mutex& m_) : bUseLock(g_bUseLock), m(m_)
{ {
if(bUseLock) if(bUseLock)
m.lock(); m.lock();