From df126ab51cb4af03dacac26aa9409fe258a0a1cb Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 25 Nov 2020 17:51:13 +0100 Subject: [PATCH] Use std::size_t consistently --- application/argumentparser.h | 2 +- application/argumentparserprivate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/argumentparser.h b/application/argumentparser.h index 1745281..ab38a19 100644 --- a/application/argumentparser.h +++ b/application/argumentparser.h @@ -362,7 +362,7 @@ public: private: // declare internal getter/setter/properties/operations for argument definition - bool matchesDenotation(const char *denotation, size_t denotationLength) const; + bool matchesDenotation(const char *denotation, std::size_t denotationLength) const; const char *m_name; char m_abbreviation; diff --git a/application/argumentparserprivate.h b/application/argumentparserprivate.h index 9ec213b..6a24bb7 100644 --- a/application/argumentparserprivate.h +++ b/application/argumentparserprivate.h @@ -18,7 +18,7 @@ public: /// \brief The Argument instances to store the results. Sub arguments of args are considered as well. ArgumentVector &args; /// \brief An index which is incremented when an argument is encountered (the current index is stored in the occurrence) or a value is encountered. - size_t index; + std::size_t index; /// \brief Points to the first argument denotation and will be incremented when a denotation has been processed. const char *const *argv; /// \brief Points to the end of the \a argv array.