thread/Mutex: remove ScopeLock, use std::lock_guard directly
This commit is contained in:
@@ -105,7 +105,7 @@ AllocatedString<char>
|
||||
IcuConverter::ToUTF8(const char *s) const
|
||||
{
|
||||
#ifdef HAVE_ICU
|
||||
const ScopeLock protect(mutex);
|
||||
const std::lock_guard<Mutex> protect(mutex);
|
||||
|
||||
ucnv_resetToUnicode(converter);
|
||||
|
||||
@@ -133,7 +133,7 @@ AllocatedString<char>
|
||||
IcuConverter::FromUTF8(const char *s) const
|
||||
{
|
||||
#ifdef HAVE_ICU
|
||||
const ScopeLock protect(mutex);
|
||||
const std::lock_guard<Mutex> protect(mutex);
|
||||
|
||||
const auto u = UCharFromUTF8(s);
|
||||
|
||||
|
Reference in New Issue
Block a user