diff options
author | Max Kellermann <max@musicpd.org> | 2020-06-10 21:00:35 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-06-10 21:00:41 +0200 |
commit | 563c7318f9305419053a876bb7bf4d1eae2517ce (patch) | |
tree | 699411ab9a78c18771a2d9f6e6bc966c9c1cd08b | |
parent | e92129f449f00039c9139b9762df6ef446a806b6 (diff) |
fs/AllocatedPath: add method GetSuffix()
-rw-r--r-- | src/fs/AllocatedPath.hxx | 5 |
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 |