[Libreoffice-commits] core.git: sc/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Mon Apr 18 16:05:39 UTC 2016
sc/source/ui/vba/vbahelper.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit ec730348a62748a4d53e2d73fc87cee92f53d044
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Mon Apr 18 09:29:23 2016 +0000
cppcheck: silence known condition warning in sc vbahelper
Change-Id: I5afc4563fa119a71069daa608020cd215477b872
Reviewed-on: https://gerrit.libreoffice.org/24205
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx
index 8faddb8..069e590 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++)
{
More information about the Libreoffice-commits
mailing list