summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-21 11:58:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-21 15:50:35 +0200
commit767092fe2cab4a8b28426a6b2b1c752277fc7df6 (patch)
treed243b943d804167f1062efa8cf1a3ef59b1e47ca /unotools
parent57a03d7a52680e7177d07efe364785d53bf0a6df (diff)
loplugin:referencecasting look for a new pattern
Change-Id: Ib7ded8db2c513909159f0876389f63b60082a529 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141618 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx4
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 09e3eda62e22..f55c421a0291 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -741,12 +741,12 @@ sal_Int64 SAL_CALL TempFileFastService::getLength()
css::uno::Reference< css::io::XInputStream > SAL_CALL TempFileFastService::getInputStream()
{
- return css::uno::Reference< css::io::XInputStream >( *this, css::uno::UNO_QUERY );
+ return this;
}
css::uno::Reference< css::io::XOutputStream > SAL_CALL TempFileFastService::getOutputStream()
{
- return css::uno::Reference< css::io::XOutputStream >( this );
+ return this;
}
// XTruncate
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index a5772d8ba0c7..1515bc05f3e9 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -290,14 +290,14 @@ sal_Int64 SAL_CALL OTempFileService::getLength( )
// XStream
css::uno::Reference< css::io::XInputStream > SAL_CALL OTempFileService::getInputStream()
- {
- return css::uno::Reference< css::io::XInputStream >( *this, css::uno::UNO_QUERY );
+{
+ return this;
}
css::uno::Reference< css::io::XOutputStream > SAL_CALL OTempFileService::getOutputStream()
- {
- return css::uno::Reference< css::io::XOutputStream >( *this, css::uno::UNO_QUERY );
- }
+{
+ return this;
+}
// XTruncate