From a8687fb7df9a19d9192cecae88e673360ea7f492 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Apr 2020 15:23:39 +0200 Subject: [PATCH] util/AllocatedString: use `using` instead of `typedef` --- src/util/AllocatedString.hxx | 14 +++++++------- 1 file 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 + * Copyright 2015-2020 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -43,12 +43,12 @@ template class AllocatedString { public: - typedef typename StringPointer::value_type value_type; - typedef typename StringPointer::reference reference; - typedef typename StringPointer::const_reference const_reference; - typedef typename StringPointer::pointer pointer; - typedef typename StringPointer::const_pointer const_pointer; - typedef std::size_t size_type; + using value_type = typename StringPointer::value_type; + using reference = typename StringPointer::reference; + using const_reference = typename StringPointer::const_reference; + using pointer = typename StringPointer::pointer; + using const_pointer = typename StringPointer::const_pointer; + using size_type = std::size_t; static constexpr value_type SENTINEL = '\0';