diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index c90a2aec4..1f5733244 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -257,7 +257,7 @@ public: void ChopSeparators(); gcc_pure - bool IsAbsolute() { + bool IsAbsolute() const { return PathTraitsFS::IsAbsolute(c_str()); } }; diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index 586224eaf..bf6d1e3ce 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -158,7 +158,7 @@ public: } gcc_pure - bool IsAbsolute() { + bool IsAbsolute() const { return PathTraitsFS::IsAbsolute(c_str()); } };