| 900 | |
| 901 | |
| 902 | void CStatistics::AddSourceOrigin(unsigned origin) |
| 903 | { |
| 904 | CStatTreeItemCounter* counter = static_cast<CStatTreeItemCounter*>(s_foundSources->GetChildById(0x0100 + origin)); |
| 905 | if (counter) { |
| 906 | ++(*counter); |
| 907 | } else { |
| 908 | counter = new CStatTreeItemCounter(OriginToText(origin) + ": %s", stHideIfZero | stShowPercent); |
| 909 | ++(*counter); |
| 910 | s_foundSources->AddChild(counter, 0x0100 + origin); |
| 911 | } |
| 912 | } |
| 913 | |
| 914 | void CStatistics::RemoveSourceOrigin(unsigned origin) |
| 915 | { |
nothing calls this directly
no test coverage detected