From e1a434edbc84528fcd85e337ebf713c75124ba2b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2015 23:00:16 +0100 Subject: fs/Path: make IsAbsolute() const --- src/fs/AllocatedPath.hxx | 2 +- src/fs/Path.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs') 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()); } }; -- cgit v1.2.3