diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-09-13 17:43:53 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-12-18 12:23:57 +0200 |
| commit | d785a753f9406bf74150e038ccf58b8b40eea932 (patch) | |
| tree | 8d2804c452b7564e70a07d9797d41a705132452f /kms++ | |
| parent | 9c67dae2d2e6f977e7dc8c5ed070e2bc07383c8a (diff) | |
fix: Resolve variable shadowing warnings
Fix cppcheck shadowVariable and shadowArgument warnings by renaming
local variables to avoid conflicts:
- Rename 'ob' to 'prop' in property creation loop in card.cpp
- Rename loop variable 'y_offset' to 'y_off' in conv-yuv-semiplanar.h
- Rename local 'y' to 'y_val' in SMPTE pattern generator in testpat.cpp
- Rename 'is_last' to 'child_is_last' in entry printing in kmsprint.cpp
These changes eliminate naming conflicts while preserving functionality
and improving code clarity.
Diffstat (limited to 'kms++')
| -rw-r--r-- | kms++/src/card.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index c26e4f2..f67f8f8 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -269,9 +269,9 @@ void Card::setup() uint32_t prop_id = props->props[i]; if (m_obmap.find(prop_id) == m_obmap.end()) { - auto ob = new Property(*this, prop_id); - m_obmap[prop_id] = ob; - m_properties.push_back(ob); + auto prop = new Property(*this, prop_id); + m_obmap[prop_id] = prop; + m_properties.push_back(prop); } } |
