From 651720552e4e0f1b3d7c06e1046708c65f3cc616 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 22 Sep 2018 16:41:33 +0200 Subject: [PATCH] Replace typedef's with using * Except in code which will be discarded in v5 anyways * Should not affect source and binary compatibility --- application/argumentparser.h | 6 +++--- conversion/stringconversion.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/argumentparser.h b/application/argumentparser.h index dd4df22..f79e63f 100644 --- a/application/argumentparser.h +++ b/application/argumentparser.h @@ -54,9 +54,9 @@ class Argument; class ArgumentParser; class ArgumentReader; -typedef std::initializer_list ArgumentInitializerList; -typedef std::vector ArgumentVector; -typedef std::function ArgumentPredicate; +using ArgumentInitializerList = std::initializer_list; +using ArgumentVector = std::vector; +using ArgumentPredicate = std::function; /*! * \brief The UnknownArgumentBehavior enum specifies the behavior of the argument parser when an unknown diff --git a/conversion/stringconversion.h b/conversion/stringconversion.h index 8e3f8e1..a99ba75 100644 --- a/conversion/stringconversion.h +++ b/conversion/stringconversion.h @@ -35,8 +35,8 @@ struct CPP_UTILITIES_EXPORT StringDataDeleter { /*! * \brief Type used to return string encoding conversion result. */ -typedef std::pair, std::size_t> StringData; -//typedef std::pair, std::size_t> StringData; // might work too +using StringData = std::pair, std::size_t>; +//using StringData = std::pair, std::size_t>; // might work too CPP_UTILITIES_EXPORT StringData convertString( const char *fromCharset, const char *toCharset, const char *inputBuffer, std::size_t inputBufferSize, float outputBufferSizeFactor = 1.0f);