App: Switch to isNullOrEmpty()

This commit is contained in:
Chris Hennes
2025-03-03 19:24:15 -06:00
parent 66e1710956
commit b090e27dcf

View File

@@ -678,7 +678,7 @@ Document* Application::openDocument(const char * FileName, DocumentCreateFlags c
}
Document *Application::getDocumentByPath(const char *path, PathMatchMode checkCanonical) const {
if(!path || path[0] == '\0')
if(Base::Tools::isNullOrEmpty(path))
return nullptr;
if(DocFileMap.empty()) {
for(const auto &v : DocMap) {