diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 13:30:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 17:59:32 +0200 |
commit | 586cfef1df9fb99aaf018029b7f06363e96bc72b (patch) | |
tree | dc4be0619ab5fccdf1e8e8780ddcdfa022e2f0eb /sw/source/core/unocore/unotext.cxx | |
parent | f44bd7bb0ce23535f5e0ced7966677f4fff943fc (diff) |
loplugin:referencecasting in sw
Change-Id: Ib5de4377b22815ba718559ff6fcfd6ab5a0547a6
Reviewed-on: https://gerrit.libreoffice.org/75999
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unotext.cxx')
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 992c8be80532..040291d51652 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -877,8 +877,7 @@ SwXText::getStart() throw aRuntime; } xRef->gotoStart(false); - const uno::Reference< text::XTextRange > xRet(xRef, uno::UNO_QUERY); - return xRet; + return xRef; } uno::Reference< text::XTextRange > SAL_CALL @@ -894,8 +893,7 @@ SwXText::getEnd() throw aRuntime; } xRef->gotoEnd(false); - const uno::Reference< text::XTextRange > xRet(xRef, uno::UNO_QUERY); - return xRet; + return xRef; } OUString SAL_CALL SwXText::getString() |