mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-28 21:14:15 -04:00
testmi: Fix missing m_title copy in TestMISettings
cppcheck reported that the TestMISettings copy constructor did not initialize member variable m_title: Member variable 'TestMISettings::m_title' is not assigned in the copy constructor. Should it be copied? m_title is part of the serialized settings state, so ensure copied TestMISettings instances preserve the configured title value. Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
@@ -58,6 +58,7 @@ TestMISettings::TestMISettings()
|
||||
}
|
||||
|
||||
TestMISettings::TestMISettings(const TestMISettings& other) :
|
||||
m_title(other.m_title),
|
||||
m_streams(other.m_streams)
|
||||
{
|
||||
m_useReverseAPI = other.m_useReverseAPI;
|
||||
|
||||
Reference in New Issue
Block a user