Replace typedef's with using
* Except in code which will be discarded in v5 anyways * Should not affect source and binary compatibility
This commit is contained in:
parent
12f12ae3f9
commit
651720552e
|
@ -54,9 +54,9 @@ class Argument;
|
|||
class ArgumentParser;
|
||||
class ArgumentReader;
|
||||
|
||||
typedef std::initializer_list<Argument *> ArgumentInitializerList;
|
||||
typedef std::vector<Argument *> ArgumentVector;
|
||||
typedef std::function<bool(Argument *)> ArgumentPredicate;
|
||||
using ArgumentInitializerList = std::initializer_list<Argument *>;
|
||||
using ArgumentVector = std::vector<Argument *>;
|
||||
using ArgumentPredicate = std::function<bool(Argument *)>;
|
||||
|
||||
/*!
|
||||
* \brief The UnknownArgumentBehavior enum specifies the behavior of the argument parser when an unknown
|
||||
|
|
|
@ -35,8 +35,8 @@ struct CPP_UTILITIES_EXPORT StringDataDeleter {
|
|||
/*!
|
||||
* \brief Type used to return string encoding conversion result.
|
||||
*/
|
||||
typedef std::pair<std::unique_ptr<char[], StringDataDeleter>, std::size_t> StringData;
|
||||
//typedef std::pair<std::unique_ptr<char>, std::size_t> StringData; // might work too
|
||||
using StringData = std::pair<std::unique_ptr<char[], StringDataDeleter>, std::size_t>;
|
||||
//using StringData = std::pair<std::unique_ptr<char>, 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);
|
||||
|
|
Loading…
Reference in New Issue