Kaydet (Commit) 10469041 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

simplify a bit

Change-Id: I8bafb5195f6c98a7e0e512aec947f0e5e2867c13
üst 690eb78e
...@@ -2349,12 +2349,12 @@ uno::Reference<table::XCellRange> SwXTextTable::getCellRangeByPosition(sal_Int3 ...@@ -2349,12 +2349,12 @@ uno::Reference<table::XCellRange> SwXTextTable::getCellRangeByPosition(sal_Int3
throw lang::IndexOutOfBoundsException(); 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) throw (uno::RuntimeException, std::exception)
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
uno::Reference< table::XCellRange > aRef; uno::Reference< table::XCellRange > aRef;
SwFrmFmt* pFmt = GetFrmFmt(); SwFrmFmt* pFmt(GetFrmFmt());
if(pFmt) if(pFmt)
{ {
SwTable* pTable = SwTable::FindTable( pFmt ); SwTable* pTable = SwTable::FindTable( pFmt );
...@@ -2375,13 +2375,10 @@ uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName(const OUSt ...@@ -2375,13 +2375,10 @@ uno::Reference< table::XCellRange > SwXTextTable::getCellRangeByName(const OUSt
// elsewhere when the cursor in the implementation does not // elsewhere when the cursor in the implementation does not
// point to the top-left and bottom-right cells // point to the top-left and bottom-right cells
aDesc.Normalize(); aDesc.Normalize();
return GetRangeByName(pFmt, pTable, sTLName, sBRName, aDesc);
aRef = GetRangeByName(pFmt, pTable, sTLName, sBRName, aDesc);
} }
} }
if(!aRef.is())
throw uno::RuntimeException(); throw uno::RuntimeException();
return aRef;
} }
uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL SwXTextTable::getDataArray() uno::Sequence< uno::Sequence< uno::Any > > SAL_CALL SwXTextTable::getDataArray()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment