summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unotbl.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 18:54:18 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:43 +0100
commit10469041783dcfe98b04d15492cb058b6bd911a8 (patch)
treea6fa4c3ddbcdb214a384585240f60c7de229e906 /sw/source/core/unocore/unotbl.cxx
parent690eb78e409665eca4b9e9e5a754459d524529e0 (diff)
simplify a bit
Change-Id: I8bafb5195f6c98a7e0e512aec947f0e5e2867c13
Diffstat (limited to 'sw/source/core/unocore/unotbl.cxx')
-rw-r--r--sw/source/core/unocore/unotbl.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 8d52a7463bc0..9f0386ae2005 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2349,12 +2349,12 @@ uno::Reference<table::XCellRange> SwXTextTable::getCellRangeByPosition(sal_Int3
throw lang::IndexOutOfBoundsException();
}
-uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName(const OUString& sRange)
+uno::Reference<table::XCellRange> SwXTextTable::getCellRangeByName(const OUString& sRange)
throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
uno::Reference< table::XCellRange > aRef;
- SwFrmFmt* pFmt = GetFrmFmt();
+ SwFrmFmt* pFmt(GetFrmFmt());
if(pFmt)
{
SwTable* pTable = SwTable::FindTable( pFmt );
@@ -2375,13 +2375,10 @@ uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName(const OUSt
// elsewhere when the cursor in the implementation does not
// point to the top-left and bottom-right cells
aDesc.Normalize();
-
- aRef = GetRangeByName(pFmt, pTable, sTLName, sBRName, aDesc);
+ return GetRangeByName(pFmt, pTable, sTLName, sBRName, aDesc);
}
}
- if(!aRef.is())
- throw uno::RuntimeException();
- return aRef;
+ throw uno::RuntimeException();
}
uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL SwXTextTable::getDataArray()