summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 13:05:14 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:25 +0100
commit812aef9e3893a4de15fad0fca1ed6bf1fa17836a (patch)
tree61f1bd096577ee66787b9a85ed0d477c94609093 /sw
parentf3cce996160a568a403c99efebd58173fd4c4ac2 (diff)
simplify
Change-Id: I13a96f7dc18b60d487a9fbd1843eb3709eebc815
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unotbl.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 7eddfc7c52d4..44a407a97d82 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -917,15 +917,12 @@ bool SwXCell::IsValid() const
OUString SwXCell::getFormula(void) throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
- OUString sRet;
- if(IsValid())
- {
- SwTblBoxFormula aFormula( pBox->GetFrmFmt()->GetTblBoxFormula() );
- SwTable* pTable = SwTable::FindTable( GetFrmFmt() );
- aFormula.PtrToBoxNm( pTable );
- sRet = aFormula.GetFormula();
- }
- return sRet;
+ if(!IsValid())
+ return OUString();
+ SwTblBoxFormula aFormula( pBox->GetFrmFmt()->GetTblBoxFormula() );
+ SwTable* pTable = SwTable::FindTable( GetFrmFmt() );
+ aFormula.PtrToBoxNm( pTable );
+ return aFormula.GetFormula();
}
///@see sw_setValue (TODO: seems to be copy and paste programming here)