From 476647bfa0543227d7f824c2374a771836aeb88a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 15 Jun 2019 13:57:16 +0200 Subject: [PATCH] fs/AllocatedPath: add GetSuffix() --- src/fs/AllocatedPath.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 1487a5acf..928705b77 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -294,6 +294,11 @@ public: return Traits::Relative(c_str(), other_fs.c_str()); } + gcc_pure + const_pointer_type GetSuffix() const noexcept { + return ((Path)*this).GetSuffix(); + } + /** * Chop trailing directory separators. */