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 ArgumentParser;
|
||||||
class ArgumentReader;
|
class ArgumentReader;
|
||||||
|
|
||||||
typedef std::initializer_list<Argument *> ArgumentInitializerList;
|
using ArgumentInitializerList = std::initializer_list<Argument *>;
|
||||||
typedef std::vector<Argument *> ArgumentVector;
|
using ArgumentVector = std::vector<Argument *>;
|
||||||
typedef std::function<bool(Argument *)> ArgumentPredicate;
|
using ArgumentPredicate = std::function<bool(Argument *)>;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief The UnknownArgumentBehavior enum specifies the behavior of the argument parser when an unknown
|
* \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.
|
* \brief Type used to return string encoding conversion result.
|
||||||
*/
|
*/
|
||||||
typedef std::pair<std::unique_ptr<char[], StringDataDeleter>, std::size_t> StringData;
|
using StringData = std::pair<std::unique_ptr<char[], StringDataDeleter>, std::size_t>;
|
||||||
//typedef std::pair<std::unique_ptr<char>, std::size_t> StringData; // might work too
|
//using StringData = std::pair<std::unique_ptr<char>, std::size_t>; // might work too
|
||||||
|
|
||||||
CPP_UTILITIES_EXPORT StringData convertString(
|
CPP_UTILITIES_EXPORT StringData convertString(
|
||||||
const char *fromCharset, const char *toCharset, const char *inputBuffer, std::size_t inputBufferSize, float outputBufferSizeFactor = 1.0f);
|
const char *fromCharset, const char *toCharset, const char *inputBuffer, std::size_t inputBufferSize, float outputBufferSizeFactor = 1.0f);
|
||||||
|
|
Loading…
Reference in New Issue