summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unotbl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unotbl.cxx')
-rw-r--r--sw/source/core/unocore/unotbl.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index f1d697a36c81..5858975d6cf5 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1423,26 +1423,12 @@ OUString SwXTextTableCursor::getImplementationName()
sal_Bool SwXTextTableCursor::supportsService(const OUString& rServiceName)
{ return cppu::supportsService(this, rServiceName); }
-void SwXTextTableCursor::acquire() noexcept
-{
- SwXTextTableCursor_Base::acquire();
-}
-
void SwXTextTableCursor::release() noexcept
{
SolarMutexGuard aGuard;
SwXTextTableCursor_Base::release();
}
-css::uno::Any SAL_CALL
-SwXTextTableCursor::queryInterface( const css::uno::Type& _rType )
-{
- css::uno::Any aReturn = SwXTextTableCursor_Base::queryInterface( _rType );
- if ( !aReturn.hasValue() )
- aReturn = OTextCursorHelper::queryInterface( _rType );
- return aReturn;
-}
-
const SwPaM* SwXTextTableCursor::GetPaM() const { return &GetCursor(); }
SwPaM* SwXTextTableCursor::GetPaM() { return &GetCursor(); }
const SwDoc* SwXTextTableCursor::GetDoc() const { return GetFrameFormat()->GetDoc(); }
@@ -2099,7 +2085,7 @@ SwXTextTable::attach(const uno::Reference<text::XTextRange> & xTextRange)
uno::Reference<XUnoTunnel> xRangeTunnel(xTextRange, uno::UNO_QUERY);
SwXTextRange* pRange(comphelper::getFromUnoTunnel<SwXTextRange>(xRangeTunnel));
- OTextCursorHelper* pCursor(comphelper::getFromUnoTunnel<OTextCursorHelper>(xRangeTunnel));
+ OTextCursorHelper* pCursor(dynamic_cast<OTextCursorHelper*>(xTextRange.get()));
SwDoc* pDoc = pRange ? &pRange->GetDoc() : pCursor ? pCursor->GetDoc() : nullptr;
if (!pDoc || !m_pImpl->m_nRows || !m_pImpl->m_nColumns)
throw lang::IllegalArgumentException();