mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 02:47:28 +01:00
refactor(sonar): rename locals that shadow outer declarations (cpp:S1117)
Only local variables and definition parameters are renamed; shadowing struct fields and enumerators in headers are left for a separate change.
This commit is contained in:
@@ -164,9 +164,9 @@ void ui::cameraview_panel::record_func()
|
||||
|
||||
if (!rec_name.empty()) {
|
||||
const std::string magic{"{RECORD}"};
|
||||
size_t pos = cmdline.find(magic);
|
||||
if (pos != -1)
|
||||
cmdline.replace(pos, magic.size(), rec_name);
|
||||
size_t magicpos = cmdline.find(magic);
|
||||
if (magicpos != -1)
|
||||
cmdline.replace(magicpos, magic.size(), rec_name);
|
||||
}
|
||||
|
||||
piped_proc proc(cmdline, true);
|
||||
|
||||
Reference in New Issue
Block a user