MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / ClearObjectDataRecursive

Method ClearObjectDataRecursive

src/Windows/Treeview.cpp:387–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387int Treeview::ClearObjectDataRecursive(FileObject * fo, bool includeTop) {
388 if (!fo)
389 return -1;
390
391 if (includeTop) {
392 fo->SetData(NULL);
393 }
394 size_t count = fo->GetChildCount();
395 for(size_t i = 0; i < count; i++) {
396 ClearObjectDataRecursive(fo->GetChild(i), true);
397 }
398
399 return 0;
400}
401
402int Treeview::RedrawItem(HTREEITEM item) {
403 if (!item)

Callers

nothing calls this directly

Calls 3

SetDataMethod · 0.45
GetChildCountMethod · 0.45
GetChildMethod · 0.45

Tested by

no test coverage detected