diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-19 14:27:36 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:19 -0300 |
commit | f12e470665c66101baf3a52fca0737b5102d5420 (patch) | |
tree | 967235b615a604122d183414ca892d21a8eda205 /abstractmetabuilder.cpp | |
parent | 6b0d3bae3a0c015c3341a6d615a6b6d799322d8a (diff) |
Fixes setting of template argument's usage pattern.
Comes with an unit test.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index c3ebe3b07..9d55c49d3 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -2538,6 +2538,7 @@ bool AbstractMetaBuilder::inheritTemplate(AbstractMetaClass* subclass, temporaryType->setConstant(i.is_constant); temporaryType->setReference(i.is_reference); temporaryType->setIndirections(i.indirections); + temporaryType->decideUsagePattern(); templateTypes << temporaryType; } else { ReportHandler::warning("Ignoring template parameter " + templateParamName + " from " + info.instantiationName() + ", because I don't know what it is."); |