summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-25 19:42:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-25 22:22:50 +0200
commit7a115715c7884d43ed7a4ff9054fed9a95cefef0 (patch)
treea0e103eb0deac5727fbbce9067ceb9999fa99ed9
parenta48b5c8e85159485e175bdcd1dea7e30948f9fc4 (diff)
crashtesting: cached deque::end invalidated
e.g. import of ooo101471-3.odf Change-Id: Ie1d83077cf91f2291c74390c24b7f36808e32562 Reviewed-on: https://gerrit.libreoffice.org/59597 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index e440861e43f6..32108b58104e 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -804,8 +804,7 @@ void ScXMLChangeTrackingImportHelper::CreateChangeTrack(ScDocument* pTempDoc)
pTrack->SetActionMax(pTrack->GetLast()->GetActionNumber());
aItr = aActions.begin();
- aEndItr = aActions.end();
- while (aItr != aEndItr)
+ while (aItr != aActions.end())
{
SetDependencies(aItr->get());
@@ -816,8 +815,7 @@ void ScXMLChangeTrackingImportHelper::CreateChangeTrack(ScDocument* pTempDoc)
}
aItr = aActions.begin();
- aEndItr = aActions.end();
- while (aItr != aEndItr)
+ while (aItr != aActions.end())
{
OSL_ENSURE((*aItr)->nActionType == SC_CAT_CONTENT, "wrong action type");
SetNewCell(static_cast<ScMyContentAction*>(aItr->get()));