vbahelper/source/vbahelper/vbahelper.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 6d20b453b6e667dee18bc456249279805aa08755 Author: Stephan Bergmann <[email protected]> Date: Wed Apr 2 10:52:04 2014 +0200 coverity#1194895 Logically dead code Change-Id: I24e8ee88a1efdfaa7cedf996bd2d3bb05fbd4dc6 diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index 5c11fbd..90efa1e 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 _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
