From 358f2313919e949ba629cc9def0ff6388aaefad0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Apr 2020 15:24:43 +0200 Subject: [PATCH] util/StringPointer: use `using` instead of `typedef` --- src/util/StringPointer.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util/StringPointer.hxx b/src/util/StringPointer.hxx index 2974f7f5a..40b2a3ac2 100644 --- a/src/util/StringPointer.hxx +++ b/src/util/StringPointer.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 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 @@ -36,11 +36,11 @@ template class StringPointer { public: - typedef T value_type; - typedef T &reference; - typedef const T &const_reference; - typedef T *pointer; - typedef const T *const_pointer; + using value_type = T; + using reference = T &; + using const_reference = const T &; + using pointer = T *; + using const_pointer = const T *; static constexpr value_type SENTINEL = '\0';