From 4e3fdedff91571ba73a31d11f001445190d29d7d Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Mon, 31 Oct 2016 17:24:15 +0100 Subject: [PATCH] templatesimplifier: Improved const correctness. There are no functional changes. --- lib/templatesimplifier.cpp | 6 +++--- lib/templatesimplifier.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 452de4142..56ddff8d7 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -683,7 +683,7 @@ void TemplateSimplifier::useDefaultArgumentValues(const std::list &temp } } -bool TemplateSimplifier::instantiateMatch(const Token *instance, const std::string &name, std::size_t numberOfArguments, const char patternAfter[]) +bool TemplateSimplifier::instantiateMatch(const Token *instance, const std::string &name, const std::size_t numberOfArguments, const char patternAfter[]) { if (!Token::simpleMatch(instance, (name + " <").c_str())) return false; @@ -739,9 +739,9 @@ void TemplateSimplifier::expandTemplate( TokenList& tokenlist, const Token *tok, const std::string &name, - std::vector &typeParametersInDeclaration, + const std::vector &typeParametersInDeclaration, const std::string &newName, - std::vector &typesUsedInTemplateInstantiation, + const std::vector &typesUsedInTemplateInstantiation, std::list &templateInstantiations) { bool inTemplateDefinition=false; diff --git a/lib/templatesimplifier.h b/lib/templatesimplifier.h index bf28813ae..ce06f5644 100644 --- a/lib/templatesimplifier.h +++ b/lib/templatesimplifier.h @@ -99,7 +99,7 @@ public: * @param patternAfter pattern that must match the tokens after the ">" * @return match => true */ - static bool instantiateMatch(const Token *instance, const std::string &name, std::size_t numberOfArguments, const char patternAfter[]); + static bool instantiateMatch(const Token *instance, const std::string &name, const std::size_t numberOfArguments, const char patternAfter[]); /** * Match template declaration/instantiation @@ -113,9 +113,9 @@ public: TokenList& tokenlist, const Token *tok, const std::string &name, - std::vector &typeParametersInDeclaration, + const std::vector &typeParametersInDeclaration, const std::string &newName, - std::vector &typesUsedInTemplateInstantiation, + const std::vector &typesUsedInTemplateInstantiation, std::list &templateInstantiations); /**