MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ClearGRFConfigList

Function ClearGRFConfigList

src/newgrf_config.cpp:324–327  ·  view source on GitHub ↗

* Clear a GRF Config list, freeing all nodes. * @param config Start of the list. * @post \a config is set to \c nullptr. */

Source from the content-addressed store, hash-verified

322 * @post \a config is set to \c nullptr.
323 */
324void ClearGRFConfigList(GRFConfigList &config)
325{
326 config.clear();
327}
328
329/**
330 * Append a GRF Config list onto another list.

Callers 11

ClearMethod · 0.85
OnDropdownSelectMethod · 0.85
CopyGRFConfigListFunction · 0.85
DoScanNewGRFFilesFunction · 0.85
Receive_GC_LISTINGMethod · 0.85
NetworkAddServerFunction · 0.85
DoLoadFunction · 0.85
SaveOrLoadFunction · 0.85
LoadTTDPatchExtraChunksFunction · 0.85
LoadCommonMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected