summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-18 16:33:48 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-18 16:36:27 +0100
commit22aebd531dbd6230214b4dc7f5342694f9b448af (patch)
tree6d1284c1bbc1652553bb43a240b63c122f6fdd68
parent4caed2a28a1cf44a61b2cbbf45737e31a63c9bb8 (diff)
remove duplicated code
Change-Id: I7c125bd27f5662b2f5bbcafb51aebdac9e272d08
-rw-r--r--sc/source/core/data/conditio.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 6e57acbe3d65..0db3471a65e3 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -2208,14 +2208,7 @@ void ScConditionalFormatList::UpdateReference( sc::RefUpdateContext& rCxt )
if (rCxt.meMode == URM_INSDEL)
{
// need to check which must be deleted
- iterator itr = begin();
- while(itr != end())
- {
- if(itr->GetRange().empty())
- maConditionalFormats.erase(itr++);
- else
- ++itr;
- }
+ CheckAllEntries();
}
}