Skip to content

Commit

Permalink
Clean up a clang analyzer cast error (TextureGroup#1387)
Browse files Browse the repository at this point in the history
~/Texture/Source/Private/ASMutableElementMap.mm:32:24: warning: Conversion from value of type 'NSMutableArray<NSMutableArray *> *' to incompatible type 'ASMutableCollectionElementTwoDimensionalArray *'
    _sectionsOfItems = (id)ASTwoDimensionalArrayDeepMutableCopy(items);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
  • Loading branch information
bolsinga authored and hebertialmeida committed May 10, 2019
1 parent fbddcd4 commit a1768e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Private/ASMutableElementMap.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (instancetype)initWithSections:(NSArray<ASSection *> *)sections items:(ASColle
{
if (self = [super init]) {
_sections = [sections mutableCopy];
_sectionsOfItems = (id)ASTwoDimensionalArrayDeepMutableCopy(items);
_sectionsOfItems = (ASMutableCollectionElementTwoDimensionalArray *)ASTwoDimensionalArrayDeepMutableCopy(items);
_supplementaryElements = [ASMutableElementMap deepMutableCopyOfElementsDictionary:supplementaryElements];
}
return self;
Expand Down

0 comments on commit a1768e2

Please sign in to comment.