summaryrefslogtreecommitdiff
path: root/src/fs/AllocatedPath.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-04-12 22:49:03 +0200
committerMax Kellermann <max@duempel.org>2016-04-12 22:53:06 +0200
commit9b854468087a620e8fd442a5e764858f5454f48e (patch)
tree96459ef22f999f5ff8593f5e018a3205b012f89b /src/fs/AllocatedPath.hxx
parentfd5d42836f65f7fdd0fe4ec0fa42b2452fdfc930 (diff)
util/StringPointer: rename typedef pointer to pointer_type
Diffstat (limited to 'src/fs/AllocatedPath.hxx')
-rw-r--r--src/fs/AllocatedPath.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index a950908fc..2aa2fc2a9 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -40,18 +40,18 @@ class Error;
class AllocatedPath {
typedef PathTraitsFS::string string;
typedef PathTraitsFS::value_type value_type;
- typedef PathTraitsFS::pointer pointer;
- typedef PathTraitsFS::const_pointer const_pointer;
+ typedef PathTraitsFS::pointer_type pointer_type;
+ typedef PathTraitsFS::const_pointer_type const_pointer_type;
string value;
AllocatedPath(std::nullptr_t):value() {}
- AllocatedPath(const_pointer _value):value(_value) {}
+ AllocatedPath(const_pointer_type _value):value(_value) {}
AllocatedPath(string &&_value):value(std::move(_value)) {}
- static AllocatedPath Build(const_pointer a, size_t a_size,
- const_pointer b, size_t b_size) {
+ static AllocatedPath Build(const_pointer_type a, size_t a_size,
+ const_pointer_type b, size_t b_size) {
return AllocatedPath(PathTraitsFS::Build(a, a_size, b, b_size));
}
public:
@@ -89,13 +89,13 @@ public:
* Join two path components with the path separator.
*/
gcc_pure gcc_nonnull_all
- static AllocatedPath Build(const_pointer a, const_pointer b) {
+ static AllocatedPath Build(const_pointer_type a, const_pointer_type b) {
return Build(a, PathTraitsFS::GetLength(a),
b, PathTraitsFS::GetLength(b));
}
gcc_pure gcc_nonnull_all
- static AllocatedPath Build(Path a, const_pointer b) {
+ static AllocatedPath Build(Path a, const_pointer_type b) {
return Build(a.c_str(), b);
}
@@ -105,13 +105,13 @@ public:
}
gcc_pure gcc_nonnull_all
- static AllocatedPath Build(const_pointer a, const AllocatedPath &b) {
+ static AllocatedPath Build(const_pointer_type a, const AllocatedPath &b) {
return Build(a, PathTraitsFS::GetLength(a),
b.value.c_str(), b.value.size());
}
gcc_pure gcc_nonnull_all
- static AllocatedPath Build(const AllocatedPath &a, const_pointer b) {
+ static AllocatedPath Build(const AllocatedPath &a, const_pointer_type b) {
return Build(a.value.c_str(), a.value.size(),
b, PathTraitsFS::GetLength(b));
}
@@ -128,7 +128,7 @@ public:
* character set to a #Path instance.
*/
gcc_pure
- static AllocatedPath FromFS(const_pointer fs) {
+ static AllocatedPath FromFS(const_pointer_type fs) {
return AllocatedPath(fs);
}
@@ -214,7 +214,7 @@ public:
* instance ends.
*/
gcc_pure
- const_pointer c_str() const {
+ const_pointer_type c_str() const {
return value.c_str();
}
@@ -223,7 +223,7 @@ public:
* null-terminated.
*/
gcc_pure
- const_pointer data() const {
+ const_pointer_type data() const {
return value.data();
}
@@ -249,7 +249,7 @@ public:
* nullptr on mismatch.
*/
gcc_pure
- const_pointer Relative(Path other_fs) const {
+ const_pointer_type Relative(Path other_fs) const {
return PathTraitsFS::Relative(c_str(), other_fs.c_str());
}