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

Julien Nabet serval2412 at yahoo.fr
Mon Apr 21 23:42:58 PDT 2014


 sw/source/core/text/blink.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cf8946d10226272e8a0e6f1b1043b54d4b63db8d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Apr 21 10:24:48 2014 +0200

    cppcheck: Iterator it used after element has been erased
    
    Change-Id: Id0a0b026cd25f210df4bd821c2ca28edf3dee693
    Reviewed-on: https://gerrit.libreoffice.org/9110
    Tested-by: David Tardon <dtardon at redhat.com>
    Reviewed-by: David Tardon <dtardon at redhat.com>

diff --git a/sw/source/core/text/blink.cxx b/sw/source/core/text/blink.cxx
index 0555322..70b994b 100644
--- a/sw/source/core/text/blink.cxx
+++ b/sw/source/core/text/blink.cxx
@@ -107,7 +107,7 @@ IMPL_LINK_NOARG(SwBlink, Blinker)
                     ->GetCurrShell()->InvalidateWindows( aRefresh );
             }
             else // Portions without a shell can be removed from the list
-                aList.erase( it );
+                it = aList.erase(it);
         }
     }
     else // If the list is empty, the timer can be stopped


More information about the Libreoffice-commits mailing list