Kaydet (Commit) 6d20b453 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

coverity#1194895 Logically dead code

Change-Id: I24e8ee88a1efdfaa7cedf996bd2d3bb05fbd4dc6
üst 6cd87e5e
......@@ -515,12 +515,11 @@ ContainerUtilities::getUniqueName( const uno::Sequence< OUString >& _slist, cons
{
sal_Int32 a = _nStartSuffix;
OUString scompname = _sElementName;
bool bElementexists = true;
sal_Int32 nLen = _slist.getLength();
if ( nLen == 0 )
return _sElementName;
while (bElementexists == true)
for (;;)
{
for (sal_Int32 i = 0; i < nLen; i++)
{
......@@ -531,7 +530,6 @@ ContainerUtilities::getUniqueName( const uno::Sequence< OUString >& _slist, cons
}
scompname = _sElementName + _sSuffixSeparator + OUString::number( a++ );
}
return OUString();
}
sal_Int32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment