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;
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_
#endif //_TVG_LOCK_H_