From 0ffa1e835b68a627c4238eef9d3829282a544801 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sun, 29 Mar 2015 00:57:33 +0100 Subject: flatten and simplify Change-Id: I5f00f8f31dee2841fb993f310be256a166042c85 --- sw/source/core/unocore/unotbl.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sw/source') 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) -- cgit