Commit bd8fe1c4 authored by Tobias Hunger's avatar Tobias Hunger

ProjectExplorer: Deduplicate functionality of makeEmpty

Only one line saved, but potentially less hassle should FolderNode::makeEmpty
ever change.

Change-Id: I4dd01179a8dce9735744991c3de080739ab693ae
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 0b11ba31
......@@ -737,8 +737,7 @@ void ProjectNode::makeEmpty()
qDeleteAll(m_projectNodes);
m_projectNodes.clear();
setFolderNodes({});
setFileNodes({});
FolderNode::makeEmpty();
}
bool ProjectNode::isEmpty() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment