summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-03 15:23:39 +0200
committerMax Kellermann <max@musicpd.org>2020-04-03 15:25:37 +0200
commita8687fb7df9a19d9192cecae88e673360ea7f492 (patch)
tree43e8f583fa7e6d3335b114a1b09d643ef9584bcf /src/util
parent3b88bac07c6f39c44ce1ed2e236005cad59d21dc (diff)
util/AllocatedString: use `using` instead of `typedef`
Diffstat (limited to 'src/util')
-rw-r--r--src/util/AllocatedString.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx
index 523ab23a4..e1357a7be 100644
--- a/src/util/AllocatedString.hxx
+++ b/src/util/AllocatedString.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2015-2019 Max Kellermann <max.kellermann@gmail.com>
+ * Copyright 2015-2020 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -43,12 +43,12 @@
template<typename T=char>
class AllocatedString {
public:
- typedef typename StringPointer<T>::value_type value_type;
- typedef typename StringPointer<T>::reference reference;
- typedef typename StringPointer<T>::const_reference const_reference;
- typedef typename StringPointer<T>::pointer pointer;
- typedef typename StringPointer<T>::const_pointer const_pointer;
- typedef std::size_t size_type;
+ using value_type = typename StringPointer<T>::value_type;
+ using reference = typename StringPointer<T>::reference;
+ using const_reference = typename StringPointer<T>::const_reference;
+ using pointer = typename StringPointer<T>::pointer;
+ using const_pointer = typename StringPointer<T>::const_pointer;
+ using size_type = std::size_t;
static constexpr value_type SENTINEL = '\0';