summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-06-10 21:00:35 +0200
committerMax Kellermann <max@musicpd.org>2020-06-10 21:00:41 +0200
commit563c7318f9305419053a876bb7bf4d1eae2517ce (patch)
tree699411ab9a78c18771a2d9f6e6bc966c9c1cd08b
parente92129f449f00039c9139b9762df6ef446a806b6 (diff)
fs/AllocatedPath: add method GetSuffix()
-rw-r--r--src/fs/AllocatedPath.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index d8bab299c..8c792a2cf 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -285,6 +285,11 @@ public:
bool IsAbsolute() const noexcept {
return Traits::IsAbsolute(c_str());
}
+
+ gcc_pure
+ const_pointer_type GetSuffix() const noexcept {
+ return ((Path)*this).GetSuffix();
+ }
};
#endif