MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / toStringList

Method toStringList

launcher/SeparatorPrefixTree.h:203–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 QStringList toStringList() const
204 {
205 QStringList collected;
206 // collecting these is more expensive.
207 auto iter = children.begin();
208 while(iter != children.end())
209 {
210 QStringList list = iter.value().toStringList();
211 for(int i = 0; i < list.size(); i++)
212 {
213 list[i] = iter.key() + Tseparator + list[i];
214 }
215 collected.append(list);
216 if((*iter).m_contained)
217 {
218 collected.append(iter.key());
219 }
220 iter++;
221 }
222 return collected;
223 }
224private:
225 enum Removal
226 {

Callers 2

errorMethod · 0.80
savePackIgnoreMethod · 0.80

Calls 4

beginMethod · 0.80
endMethod · 0.80
appendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected