@@ -56,16 +56,16 @@ @try { if (tagClass != OF_ASN1_TAG_CLASS_UNIVERSAL || tagNumber != OF_ASN1_TAG_NUMBER_UTF8_STRING || constructed) @throw [OFInvalidArgumentException exception]; - if ([DEREncodedContents itemSize] != 1) + if (DEREncodedContents.itemSize != 1) @throw [OFInvalidArgumentException exception]; UTF8StringValue = [OFString - stringWithUTF8String: [DEREncodedContents items] - length: [DEREncodedContents count]]; + stringWithUTF8String: DEREncodedContents.items + length: DEREncodedContents.count]; } @catch (id e) { [self release]; @throw e; } @@ -88,11 +88,11 @@ [super dealloc]; } - (OFString *)stringValue { - return [self UTF8StringValue]; + return self.UTF8StringValue; } - (bool)isEqual: (id)object { OFASN1UTF8String *UTF8String; @@ -108,14 +108,14 @@ return true; } - (uint32_t)hash { - return [_UTF8StringValue hash]; + return _UTF8StringValue.hash; } - (OFString *)description { return [OFString stringWithFormat: @"", _UTF8StringValue]; } @end