diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-21 10:24:48 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-04-22 06:42:28 +0000 |
commit | cf8946d10226272e8a0e6f1b1043b54d4b63db8d (patch) | |
tree | 676f90ea8ec79f12a32c15ee050dbf655cf6b940 | |
parent | e64adf61eb36e6999cced57a35b7cdd8d014abf3 (diff) |
cppcheck: Iterator it used after element has been erased
Change-Id: Id0a0b026cd25f210df4bd821c2ca28edf3dee693
Reviewed-on: https://gerrit.libreoffice.org/9110
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | sw/source/core/text/blink.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/blink.cxx b/sw/source/core/text/blink.cxx index 055532298a94..70b994b751da 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 |