mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
Portability: Fix compiler shadowing warning
This commit is contained in:
parent
5fb0012ff4
commit
a9b6907e41
1 changed files with 5 additions and 4 deletions
|
@ -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_
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue