mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Drop mutability from parameter context changes
Refactoring in this area means we no longer mutate the array, just call non-const members on the elements.
This commit is contained in:
@@ -57,7 +57,7 @@ static DefaultArgumentKind getDefaultArgKind(Expr *init) {
|
||||
}
|
||||
|
||||
void Parser::DefaultArgumentInfo::setFunctionContext(
|
||||
DeclContext *DC, MutableArrayRef<ParameterList *> paramList){
|
||||
DeclContext *DC, ArrayRef<ParameterList *> paramList){
|
||||
for (auto context : ParsedContexts) {
|
||||
context->changeFunction(DC, paramList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user