summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-02 10:52:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-02 10:52:04 +0200
commit6d20b453b6e667dee18bc456249279805aa08755 (patch)
tree2e55ea5a79f48c97749f057940ef4cb24356ad7e /vbahelper
parent6cd87e5ee27af05cf54ba56d06f519a8f7138e8a (diff)
coverity#1194895 Logically dead code
Change-Id: I24e8ee88a1efdfaa7cedf996bd2d3bb05fbd4dc6
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx4
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