diff options
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index 5c11fbd30a1d..90efa1e9ed4a 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -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 |