Fix_compiler_shadowing_warning.patch 598 B

1234567891011121314151617181920212223
  1. diff --git a/thirdparty/thorvg/src/common/tvgLock.h b/thirdparty/thorvg/src/common/tvgLock.h
  2. index e6d993a41e..5dd3d5a624 100644
  3. --- a/thirdparty/thorvg/src/common/tvgLock.h
  4. +++ b/thirdparty/thorvg/src/common/tvgLock.h
  5. @@ -38,10 +38,10 @@ namespace tvg {
  6. {
  7. Key* key = nullptr;
  8. - ScopedLock(Key& key)
  9. + ScopedLock(Key& k)
  10. {
  11. - key.mtx.lock();
  12. - this->key = &key;
  13. + k.mtx.lock();
  14. + key = &k;
  15. }
  16. ~ScopedLock()
  17. @@ -68,3 +68,4 @@ namespace tvg {
  18. #endif //THORVG_THREAD_SUPPORT
  19. #endif //_TVG_LOCK_H_
  20. +