diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-18 09:29:23 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-18 16:05:17 +0000 |
commit | ec730348a62748a4d53e2d73fc87cee92f53d044 (patch) | |
tree | d1618c2cf8ce762d305ed029f54318b26a71dd77 /sc | |
parent | 1b75b28ac5fd3b491e50c4a04148964c16a89df9 (diff) |
cppcheck: silence known condition warning in sc vbahelper
Change-Id: I5afc4563fa119a71069daa608020cd215477b872
Reviewed-on: https://gerrit.libreoffice.org/24205
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbahelper.cxx | 3 |
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++) { |