Portability: Fix compiler shadowing warning

This commit is contained in:
Martin Capitanio 2024-02-07 17:26:36 +01:00 committed by Hermet Park
parent 5fb0012ff4
commit a9b6907e41

View file

@ -38,10 +38,10 @@ namespace tvg {
{ {
Key* key = nullptr; Key* key = nullptr;
ScopedLock(Key& key) ScopedLock(Key& k)
{ {
key.mtx.lock(); k.mtx.lock();
this->key = &key; key = &k;
} }
~ScopedLock() ~ScopedLock()
@ -68,3 +68,4 @@ namespace tvg {
#endif //THORVG_THREAD_SUPPORT #endif //THORVG_THREAD_SUPPORT
#endif //_TVG_LOCK_H_ #endif //_TVG_LOCK_H_