diff options
Diffstat (limited to 'svx/source/form/ParseContext.cxx')
-rw-r--r-- | svx/source/form/ParseContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index e5e76229907d..63634179142e 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -173,7 +173,7 @@ namespace OParseContextClient::OParseContextClient() { - std::lock_guard aGuard( getSafetyMutex() ); + std::scoped_lock aGuard( getSafetyMutex() ); ++s_nCounter; if ( 1 == s_nCounter ) { // first instance @@ -184,7 +184,7 @@ OParseContextClient::OParseContextClient() OParseContextClient::~OParseContextClient() { - std::lock_guard aGuard( getSafetyMutex() ); + std::scoped_lock aGuard( getSafetyMutex() ); --s_nCounter; if ( 0 == s_nCounter ) delete getSharedContext(nullptr,true); |