sc/source/ui/vba/vbahelper.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ec730348a62748a4d53e2d73fc87cee92f53d044
Author: Jochen Nitschke <j.nitschke+loger...@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 <c...@libreoffice.org>
    Reviewed-by: Stephan Bergmann <sberg...@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++)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to