[Libreoffice-commits] core.git: dbaccess/source

Julien Nabet serval2412 at yahoo.fr
Sun Mar 31 13:26:51 PDT 2013


 dbaccess/source/ui/dlg/indexdialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5ed1dbb51a4393be4ee1587f5ded103515139e9a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 31 22:23:32 2013 +0200

    coverity#735355: Operands don't affect result
    
    Change-Id: I772d3535bc2e84ec066a16666dedf302fc9f43b7

diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index 4d64697..50c8742 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -386,7 +386,7 @@ DBG_NAME(DbaIndexDialog)
             if (m_pIndexes->end() == m_pIndexes->find(sNewIndexName))
                 break;
         }
-        if ((i>0x7FFFFFFF) || (i<0))
+        if (i == 0x7FFFFFFF)
         {
             OSL_FAIL("DbaIndexDialog::OnNewIndex: no free index name found!");
             // can't do anything ... of course we try another base, but this could end with the same result ...


More information about the Libreoffice-commits mailing list