MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / ClearStringSet

Method ClearStringSet

src/core/userstringmem.cpp:94–106  ·  view source on GitHub ↗

Clear all strings in specified string set

Source from the content-addressed store, hash-verified

92
93// Clear all strings in specified string set
94void 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

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected