Browse Source

Replace typedef's with using

* Except in code which will be discarded in v5 anyways
* Should not affect source and binary compatibility
sendfile
Martchus 4 years ago
parent
commit
651720552e
  1. 6
      application/argumentparser.h
  2. 4
      conversion/stringconversion.h

6
application/argumentparser.h

@ -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

4
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::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…
Cancel
Save