summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 18:39:25 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:42 +0100
commit21ce1aed94d7a4c5acdb0ca78d12cd73c67e9f1a (patch)
tree19b427875db4264df4da7fd8b1933233b0c1f174
parent48654dea7fa669dfcbddcb0d07cf814a04665dda (diff)
simplify a bit
Change-Id: Ibbc4929720003760a535fbaca38568198a09bba5
-rw-r--r--sw/source/core/unocore/unotbl.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 5fa3c25886b5..ec5ef7d5cdac 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2249,17 +2249,13 @@ void SwXTextTable::dispose(void) throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
SwFrmFmt* pFmt = GetFrmFmt();
- if(pFmt)
- {
- SwTable* pTable = SwTable::FindTable( pFmt );
- SwTableSortBoxes& rBoxes = pTable->GetTabSortBoxes();
- SwSelBoxes aSelBoxes;
- for(SwTableSortBoxes::const_iterator it = rBoxes.begin(); it != rBoxes.end(); ++it )
- aSelBoxes.insert( *it );
- pFmt->GetDoc()->DeleteRowCol(aSelBoxes);
- }
- else
+ if(!pFmt)
throw uno::RuntimeException();
+ SwTable* pTable = SwTable::FindTable(pFmt);
+ SwSelBoxes aSelBoxes;
+ for(auto& rBox : pTable->GetTabSortBoxes() )
+ aSelBoxes.insert(rBox);
+ pFmt->GetDoc()->DeleteRowCol(aSelBoxes);
}
void SAL_CALL SwXTextTable::addEventListener(