mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13: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;
|
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_
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue