summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-28 23:00:16 +0100
committerMax Kellermann <max@duempel.org>2015-02-28 23:00:26 +0100
commite1a434edbc84528fcd85e337ebf713c75124ba2b (patch)
treea58335b7ab68a5a40365c4af5288cbc5324b36e9 /src
parent6b3b1cbd995ec2313427a6fe0b1607938cc71794 (diff)
fs/Path: make IsAbsolute() const
Diffstat (limited to 'src')
-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 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());
}
};