MCPcopy Create free account
hub / github.com/dfranx/ImFileDialog / m_clearTree

Method m_clearTree

ImFileDialog.cpp:905–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903 m_previewLoaderRunning = false;
904 }
905 void FileDialog::m_clearTree(FileTreeNode* node)
906 {
907 if (node == nullptr)
908 return;
909
910 for (auto n : node->Children)
911 m_clearTree(n);
912
913 delete node;
914 node = nullptr;
915 }
916 void FileDialog::m_setDirectory(const std::filesystem::path& p, bool addHistory)
917 {
918 bool isSameDir = m_currentDirectory == p;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected