summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbahelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbahelper.cxx')
-rw-r--r--sc/source/ui/vba/vbahelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx
index 8faddb8cd0df..069e590bdb97 100644
--- a/sc/source/ui/vba/vbahelper.cxx
+++ b/sc/source/ui/vba/vbahelper.cxx
@@ -527,12 +527,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)
+ while (true)
{
for (sal_Int32 i = 0; i < nLen; i++)
{