make idl ByteString free
This commit is contained in:
@@ -1870,15 +1870,13 @@ void SvMetaTypeEnum::ReadContextSvIdl( SvIdlDataBase & rBase,
|
|||||||
if( bOk )
|
if( bOk )
|
||||||
{
|
{
|
||||||
if( 0 == aEnumValueList.Count() )
|
if( 0 == aEnumValueList.Count() )
|
||||||
|
{
|
||||||
// the first
|
// the first
|
||||||
aPrefix = aEnumVal->GetName().getString();
|
aPrefix = aEnumVal->GetName().getString();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rtl::OString sCommonPrefix = getCommonSubPrefix(aPrefix, aEnumVal->GetName().getString());
|
aPrefix = 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);
|
|
||||||
}
|
}
|
||||||
aEnumValueList.Append( aEnumVal );
|
aEnumValueList.Append( aEnumVal );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user