diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-22 16:23:07 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-22 20:56:07 +0200 |
commit | a6a2c00ee32f6d80b2dc7af65f8be53f5198722f (patch) | |
tree | 5685d2157452430302a110cc99e1922adbe1a9ab /src/corelib/io/qfileinfo.h | |
parent | 1d6b7a27cb90d71e4cb5add4fd996d0cb9b02cfe (diff) |
Fix some qdoc warnings: std::filesystem::path getters
Those APIs need to be declared for qdoc runs, even if cxx17_filesystem is not.
Change-Id: Iaa437aa424f35d0414b6b79328bcafb49af872b3
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qfileinfo.h')
-rw-r--r-- | src/corelib/io/qfileinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h index 669a6bcea1..40cb0125ed 100644 --- a/src/corelib/io/qfileinfo.h +++ b/src/corelib/io/qfileinfo.h @@ -104,7 +104,7 @@ public: QString filePath() const; QString absoluteFilePath() const; QString canonicalFilePath() const; -#if QT_CONFIG(cxx17_filesystem) +#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC) std::filesystem::path filesystemFilePath() const { return QtPrivate::toFilesystemPath(filePath()); } std::filesystem::path filesystemAbsoluteFilePath() const @@ -122,7 +122,7 @@ public: QString path() const; QString absolutePath() const; QString canonicalPath() const; -#if QT_CONFIG(cxx17_filesystem) +#if QT_CONFIG(cxx17_filesystem) || defined(Q_CLANG_QDOC) std::filesystem::path filesystemPath() const { return QtPrivate::toFilesystemPath(path()); } std::filesystem::path filesystemAbsolutePath() const { return QtPrivate::toFilesystemPath(absolutePath()); } |