MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / removeField

Method removeField

Engine/source/console/consoleObject.cpp:669–679  ·  view source on GitHub ↗

------------------------------------------------------------------

Source from the content-addressed store, hash-verified

667
668//------------------------------------------------------------------
669bool ConsoleObject::removeField(const char* in_pFieldname)
670{
671 for (U32 i = 0; i < sg_tempFieldList.size(); i++) {
672 if (dStricmp(in_pFieldname, sg_tempFieldList[i].pFieldname) == 0) {
673 sg_tempFieldList.erase(i);
674 return true;
675 }
676 }
677
678 return false;
679}
680
681//--------------------------------------
682void ConsoleObject::initPersistFields()

Callers

nothing calls this directly

Calls 3

dStricmpFunction · 0.85
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected