Avoid unnecessary temporary

This commit is contained in:
Philippe Canal 2016-06-07 16:11:49 -05:00 committed by sftnight
parent 5e2fe4b0f0
commit c3f961aa67

View File

@ -249,9 +249,9 @@ namespace utils {
// Keep the argument const to be inline will all the other interfaces
// like: NestedNameSpecifier::Create
ASTContext &mutableCtx( const_cast<ASTContext&>(Ctx) );
arg =TemplateArgument(TemplateArgument::CreatePackCopy(mutableCtx,
desArgs.data(),
desArgs.size()));
arg = TemplateArgument::CreatePackCopy(mutableCtx,
desArgs.data(),
desArgs.size());
}
}
return changed;
@ -878,9 +878,9 @@ namespace utils {
// Keep the argument const to be inline will all the other interfaces
// like: NestedNameSpecifier::Create
ASTContext &mutableCtx( const_cast<ASTContext&>(Ctx) );
arg =TemplateArgument(TemplateArgument::CreatePackCopy(mutableCtx,
desArgs.data(),
desArgs.size()));
arg = TemplateArgument::CreatePackCopy(mutableCtx,
desArgs.data(),
desArgs.size());
}
}
return changed;