diff options
Diffstat (limited to 'sw/source/core/unocore/unotbl.cxx')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 11 |
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() |