@@ -56,17 +56,17 @@ @try { if (tagClass != OF_ASN1_TAG_CLASS_UNIVERSAL || tagNumber != OF_ASN1_TAG_NUMBER_IA5_STRING || constructed) @throw [OFInvalidArgumentException exception]; - if ([DEREncodedContents itemSize] != 1) + if (DEREncodedContents.itemSize != 1) @throw [OFInvalidArgumentException exception]; IA5StringValue = [OFString - stringWithCString: [DEREncodedContents items] + stringWithCString: DEREncodedContents.items encoding: OF_STRING_ENCODING_ASCII - length: [DEREncodedContents count]]; + length: DEREncodedContents.count]; } @catch (id e) { [self release]; @throw e; } @@ -89,11 +89,11 @@ [super dealloc]; } - (OFString *)stringValue { - return [self IA5StringValue]; + return self.IA5StringValue; } - (bool)isEqual: (id)object { OFASN1IA5String *IA5String; @@ -109,14 +109,14 @@ return true; } - (uint32_t)hash { - return [_IA5StringValue hash]; + return _IA5StringValue.hash; } - (OFString *)description { return [OFString stringWithFormat: @"", _IA5StringValue]; } @end