Minor code change according to suggestions

This commit is contained in:
Zheng, Lei
2021-10-30 12:30:45 +08:00
parent ba4c992eaa
commit c349e78f45
5 changed files with 14 additions and 14 deletions

View File

@@ -122,7 +122,7 @@ public:
App::Document* getDocument(const char *Name) const;
/// Path matching mode for getDocumentByPath()
enum PathMatchMode {
enum class PathMatchMode {
/// Match by resolving to absolute file path
MatchAbsolute = 0,
/** Match by absolute path first. If not found then match by resolving
@@ -145,7 +145,7 @@ public:
* @return Return the document found by matching with the given path
*/
App::Document* getDocumentByPath(const char *path,
PathMatchMode checkCanonical = MatchAbsolute) const;
PathMatchMode checkCanonical = PathMatchMode::MatchAbsolute) const;
/// gets the (internal) name of the document
const char * getDocumentName(const App::Document* ) const;