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

Method deleteLine

Engine/source/gui/utility/messageVector.cpp:516–529  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

514
515//--------------------------------------------------------------------------
516void MessageVector::deleteLine(const U32 position)
517{
518 AssertFatal(position >= 0 && position < mMessageLines.size(), "MessageVector::deleteLine: out of range position!");
519
520 char* pDelete = const_cast<char*>(mMessageLines[position].message);
521 delete [] pDelete;
522 mMessageLines[position].message = NULL;
523 mMessageLines[position].messageTag = 0xFFFFFFFF;
524
525 mMessageLines.erase(position);
526
527 // Notify of delete
528 spectatorMessage(LineDeleted, position);
529}
530
531
532//--------------------------------------------------------------------------

Callers 1

messageVector.cppFile · 0.80

Calls 2

sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected