Skip to content
Snippets Groups Projects
Commit 87ffb274 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

tidy: preallocate vector size

parent b606621b
No related branches found
No related tags found
1 merge request!224Tidy fixes following the merger of new normalization
......@@ -22,7 +22,7 @@ type_details type_details::as_type ( const std::string & string ) {
}
 
type_details type_details::as_type ( const std::string & string, const std::vector < std::string > & templateParams ) {
std::vector < std::unique_ptr < type_details_base > > templates;
std::vector < std::unique_ptr < type_details_base > > templates ( templateParams.size ( ) );
for ( const std::string & templateParam : templateParams ) {
templates.push_back ( std::make_unique < type_details_type > ( templateParam ) );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment