r23740 by jghali - Fix coverity 1438505: Logically dead code
scribus-commit
scribus-commit at lists.scribus.net
Sun May 10 15:38:52 UTC 2020
Author: jghali
Date: Sun May 10 15:38:52 2020
New Revision: 23740
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23740
Log:
Fix coverity 1438505: Logically dead code
Modified:
trunk/Scribus/scribus/nodeeditcontext.cpp
Modified: trunk/Scribus/scribus/nodeeditcontext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23740&path=/trunk/Scribus/scribus/nodeeditcontext.cpp
==============================================================================
--- trunk/Scribus/scribus/nodeeditcontext.cpp (original)
+++ trunk/Scribus/scribus/nodeeditcontext.cpp Sun May 10 15:38:52 2020
@@ -211,10 +211,8 @@
}
if (m_ClRe > 0)
{
- for (uint n2 = m_ClRe; n2 > 0; n2--)
- {
- if (n2 == 0)
- break;
+ for (int n2 = m_ClRe; n2 > 0; n2--)
+ {
if (Clip.isMarker(n2))
{
StartInd = n2 + 1;
@@ -448,10 +446,8 @@
}
if (m_ClRe > 0)
{
- for (uint n2 = m_ClRe; n2 > 0; n2--)
- {
- if (n2 == 0)
- break;
+ for (int n2 = m_ClRe; n2 > 0; n2--)
+ {
if (Clip.isMarker(n2))
{
StartInd = n2 + 1;
More information about the scribus-commit
mailing list