make idl ByteString free

This commit is contained in:
Caolán McNamara
2012-01-27 08:00:05 +00:00
parent 04a32c98be
commit 58d4275efa

View File

@@ -1870,15 +1870,13 @@ void SvMetaTypeEnum::ReadContextSvIdl( SvIdlDataBase & rBase,
if( bOk )
{
if( 0 == aEnumValueList.Count() )
{
// the first
aPrefix = aEnumVal->GetName().getString();
}
else
{
rtl::OString sCommonPrefix = getCommonSubPrefix(aPrefix, aEnumVal->GetName().getString());
sal_uInt16 nPos = ByteString(aPrefix).Match( aEnumVal->GetName().getString() );
if( nPos != aPrefix.getLength() && nPos != STRING_MATCH )
aPrefix = aPrefix.copy(0, nPos);
assert(sCommonPrefix == aPrefix);
aPrefix = getCommonSubPrefix(aPrefix, aEnumVal->GetName().getString());
}
aEnumValueList.Append( aEnumVal );
}