diff options
author | hjk <hjk@qt.io> | 2022-11-21 12:03:54 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-11-21 11:42:12 +0000 |
commit | 02c041c13a747d2cf42866b441715d2858ecaa66 (patch) | |
tree | ce3599a8813731d9b40986b368d8725fcb188373 /src/libs/utils/filepath.h | |
parent | 0f2db176fafe6b981f4fb8d35d7d7070dad3d92a (diff) |
Utils: Introduce FilePath::isSameExecutable()
... to replace Environment::isSameExectuable().
New code is a filepathified copy of the orginal.
Change-Id: Iebf61cd183c9a5c03a5b8a90a33b5e074af9ecbe
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/filepath.h')
-rw-r--r-- | src/libs/utils/filepath.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/filepath.h b/src/libs/utils/filepath.h index 8b3e9f69ee..ebbe25421e 100644 --- a/src/libs/utils/filepath.h +++ b/src/libs/utils/filepath.h @@ -210,6 +210,7 @@ public: bool isSameDevice(const FilePath &other) const; bool isSameFile(const FilePath &other) const; + bool isSameExecutable(const FilePath &other) const; // with potentially different suffixes [[nodiscard]] QFileInfo toFileInfo() const; [[nodiscard]] static FilePath fromFileInfo(const QFileInfo &info); |