summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-29 00:57:33 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-30 23:17:29 +0200
commit0ffa1e835b68a627c4238eef9d3829282a544801 (patch)
tree4275503f5df775a51381cd90babfcd27be6a654b
parentfe447d2e1b6e1b0fa5d3d12bf5e8b3dab5733da0 (diff)
flatten and simplify
Change-Id: I5f00f8f31dee2841fb993f310be256a166042c85
-rw-r--r--sw/source/core/unocore/unotbl.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 09f90c6d188f..11081fc18ec9 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -4493,16 +4493,11 @@ SwXTableRows::~SwXTableRows()
sal_Int32 SwXTableRows::getCount(void) throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
- sal_Int32 nRet = 0;
SwFrmFmt* pFrmFmt = GetFrmFmt();
if(!pFrmFmt)
throw uno::RuntimeException();
- else
- {
- SwTable* pTable = SwTable::FindTable( pFrmFmt );
- nRet = pTable->GetTabLines().size();
- }
- return nRet;
+ SwTable* pTable = SwTable::FindTable(pFrmFmt);
+ return pTable->GetTabLines().size();
}
///@see SwXCell::CreateXCell (TODO: seems to be copy and paste programming here)