Clear all strings in specified string set
| 92 | |
| 93 | // Clear all strings in specified string set |
| 94 | void cUserStringMemBased::ClearStringSet(int id) |
| 95 | { |
| 96 | std::map<int, StringSet*>::iterator setItr; |
| 97 | |
| 98 | setItr = mStringSets.find(id); |
| 99 | if (setItr == mStringSets.end()) |
| 100 | { |
| 101 | return; |
| 102 | } |
| 103 | |
| 104 | delete setItr->second; |
| 105 | mStringSets.erase(setItr); |
| 106 | } |
| 107 | |
| 108 | // Add an array of string pairs to a string set. The pair array passed in |
| 109 | // should terminate with an id of -1. If this string set contains string IDs |