diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 04:58:16 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 12:35:28 +0600 |
commit | cbb9149a82edf86102c37b20db98194179ed9eec (patch) | |
tree | caf67d79de96bf8dd1c4b2a858e2e339ca30ecb4 | |
parent | dab7348da8c1167be810d265ae581e365e06d36b (diff) | |
download | mpd-cbb9149a82edf86102c37b20db98194179ed9eec.tar.gz mpd-cbb9149a82edf86102c37b20db98194179ed9eec.tar.xz mpd-cbb9149a82edf86102c37b20db98194179ed9eec.zip |
fs/Traits.hxx: add shorter forms of PathTraitsXXX::Build()
-rw-r--r-- | src/fs/Traits.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index 761db0704..ff7978b6b 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -107,6 +107,11 @@ struct PathTraitsFS { gcc_pure gcc_nonnull_all static string Build(const_pointer a, size_t a_size, const_pointer b, size_t b_size); + + gcc_pure gcc_nonnull_all + static string Build(const_pointer a, const_pointer b) { + return Build(a, GetLength(a), b, GetLength(b)); + } }; /** @@ -169,6 +174,11 @@ struct PathTraitsUTF8 { gcc_pure gcc_nonnull_all static string Build(const_pointer a, size_t a_size, const_pointer b, size_t b_size); + + gcc_pure gcc_nonnull_all + static string Build(const_pointer a, const_pointer b) { + return Build(a, GetLength(a), b, GetLength(b)); + } }; #endif |