summaryrefslogtreecommitdiffstats
path: root/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch
blob: e0647628d36035dc835274e0dc57a8fa1f1f4a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/thirdparty/thorvg/src/common/tvgLock.h b/thirdparty/thorvg/src/common/tvgLock.h
index e6d993a41e..5dd3d5a624 100644
--- a/thirdparty/thorvg/src/common/tvgLock.h
+++ b/thirdparty/thorvg/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()
@@ -68,3 +68,4 @@ namespace tvg {
 #endif //THORVG_THREAD_SUPPORT

 #endif //_TVG_LOCK_H_
+