From a9b6907e41a7d7b9bb91cea8eb1e3b7ab83d8f0e Mon Sep 17 00:00:00 2001 From: Martin Capitanio Date: Wed, 7 Feb 2024 17:26:36 +0100 Subject: [PATCH] Portability: Fix compiler shadowing warning --- src/common/tvgLock.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/tvgLock.h b/src/common/tvgLock.h index ea78e046..5dd3d5a6 100644 --- a/src/common/tvgLock.h +++ b/src/common/tvgLock.h @@ -38,10 +38,10 @@ namespace tvg { { Key* key = nullptr; - ScopedLock(Key& key) + ScopedLock(Key& k) { - key.mtx.lock(); - this->key = &key; + k.mtx.lock(); + key = &k; } ~ScopedLock() @@ -67,4 +67,5 @@ namespace tvg { #endif //THORVG_THREAD_SUPPORT -#endif //_TVG_LOCK_H_ \ No newline at end of file +#endif //_TVG_LOCK_H_ +