mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
NSNumber literals
This commit is contained in:
@@ -1148,7 +1148,7 @@
|
||||
{
|
||||
int num = [component intValue];
|
||||
if (num >= 0 && num < 256)
|
||||
[newComponents addObject: [[NSNumber numberWithInt: num] stringValue]];
|
||||
[newComponents addObject: [@(num) stringValue]];
|
||||
else
|
||||
{
|
||||
valid = false;
|
||||
|
||||
Reference in New Issue
Block a user