you should call m_pConfig->getValueString(ConfigKey("[Waveform]","WaveformOverviewType") only one time, since a lot of string handling is involved.