mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Using true immutable copies of for nsarray
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
MPIconType iconType = (MPIconType)[iconNumber integerValue];
|
MPIconType iconType = (MPIconType)[iconNumber integerValue];
|
||||||
[mutableIcons addObject:[MPIconHelper icon:iconType]];
|
[mutableIcons addObject:[MPIconHelper icon:iconType]];
|
||||||
}
|
}
|
||||||
icons = mutableIcons;
|
icons = [mutableIcons copy];
|
||||||
});
|
});
|
||||||
return icons;
|
return icons;
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
[mutableIcons addObject:iconNumber];
|
[mutableIcons addObject:iconNumber];
|
||||||
}
|
}
|
||||||
iconTypes = mutableIcons;
|
iconTypes = [mutableIcons copy];
|
||||||
});
|
});
|
||||||
return iconTypes;
|
return iconTypes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user