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

Method detach

Engine/source/gui/game/guiMessageVectorCtrl.cpp:244–254  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

242
243//--------------------------------------------------------------------------
244void GuiMessageVectorCtrl::detach()
245{
246 if (isAttached() == false) {
247 Con::warnf(ConsoleLogEntry::General, "GuiMessageVectorCtrl::detach: not attached!");
248 return;
249 }
250
251 mMessageVector->unregisterSpectator(this);
252 mMessageVector = NULL;
253 AssertFatal(mLineWrappings.size() == 0, "Error, line wrappings not properly cleared!");
254}
255
256
257//--------------------------------------------------------------------------

Callers 1

Calls 3

unregisterSpectatorMethod · 0.80
warnfFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected