From 41bfd45a2e122b32dff5b9cf3d2a5f461f13cc2d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2015 23:00:16 +0100 Subject: [PATCH] fs/Path: make IsAbsolute() const --- src/fs/AllocatedPath.hxx | 2 +- src/fs/Path.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index c345470c8..e3281b77f 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -252,7 +252,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 4a3ae815f..084b7c335 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()); } };