summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-28 23:00:16 +0100
committerMax Kellermann <max@duempel.org>2016-07-29 14:55:28 +0200
commit41bfd45a2e122b32dff5b9cf3d2a5f461f13cc2d (patch)
treee029aea8485c63a46595e811fb4541869674244d
parentbbdcbd1f087b04d54fa5fb2ae3eba22d1e3c491b (diff)
fs/Path: make IsAbsolute() const
-rw-r--r--src/fs/AllocatedPath.hxx2
-rw-r--r--src/fs/Path.hxx2
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());
}
};