@@ -79,11 +79,11 @@ if ([string isEqual: @"IN"]) DNSClass = OF_DNS_CLASS_IN; else { @try { - DNSClass = (of_dns_class_t)[string decimalValue]; + DNSClass = (of_dns_class_t)string.decimalValue; } @catch (OFInvalidFormatException *e) { @throw [OFInvalidArgumentException exception]; } } @@ -124,11 +124,11 @@ else if ([string isEqual: @"ALL"]) recordType = OF_DNS_RECORD_TYPE_ALL; else { @try { recordType = - (of_dns_record_type_t)[string decimalValue]; + (of_dns_record_type_t)string.decimalValue; } @catch (OFInvalidFormatException *e) { @throw [OFInvalidArgumentException exception]; } }