From b090e27dcf2130655866433cd824fa179aa33d31 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 3 Mar 2025 19:24:15 -0600 Subject: [PATCH] App: Switch to isNullOrEmpty() --- src/App/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 03aba22b92..c149e20df4 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -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) {