I don't understand - there's no point having code that will never execute, and unless m_PlotPrefs is an std::map, I don't think there'll be any side effects from your if statement, so nothing is getting done here.  I wonder if the optimizer takes it out entirely...