summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-03-02 10:48:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-03-03 08:48:55 +0100
commit31693833dc832228c3821f83e045b6869ec22cf2 (patch)
tree857d10b7f833636b4184dd5dccdc472e22b28cc2
parentc2d1d20927af6f265080f041a9aba04733be26fb (diff)
loplugin:referencecasting (clang-cl)
Change-Id: If32c6f6d3618c134cfb2ac89e827491525c34687 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111811 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--canvas/source/directx/dx_spritehelper.cxx2
-rw-r--r--canvas/source/directx/dx_textlayout.cxx6
-rw-r--r--connectivity/source/drivers/ado/ADriver.cxx2
-rw-r--r--winaccessibility/source/service/AccObjectWinManager.cxx2
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx2
5 files changed, 7 insertions, 7 deletions
diff --git a/canvas/source/directx/dx_spritehelper.cxx b/canvas/source/directx/dx_spritehelper.cxx
index 8f436283387c..135c59e3e1f6 100644
--- a/canvas/source/directx/dx_spritehelper.cxx
+++ b/canvas/source/directx/dx_spritehelper.cxx
@@ -67,7 +67,7 @@ namespace dxcanvas
// also init base class
CanvasCustomSpriteHelper::init( rSpriteSize,
- rSpriteCanvas.get() );
+ rSpriteCanvas );
}
void SpriteHelper::disposing()
diff --git a/canvas/source/directx/dx_textlayout.cxx b/canvas/source/directx/dx_textlayout.cxx
index 5e69f70df624..452b0d48e79c 100644
--- a/canvas/source/directx/dx_textlayout.cxx
+++ b/canvas/source/directx/dx_textlayout.cxx
@@ -105,7 +105,7 @@ namespace dxcanvas
aDrawHelper.queryTextBounds(
maText,
maLogicalAdvancements,
- mpFont.get(),
+ mpFont,
mpFont->getFontMatrix()));
return aBounds;
@@ -176,7 +176,7 @@ namespace dxcanvas
{
::osl::MutexGuard aGuard( m_aMutex );
- return mpFont.get();
+ return mpFont;
}
rendering::StringContext SAL_CALL TextLayout::getText( )
@@ -205,7 +205,7 @@ namespace dxcanvas
rOutputOffset,
maText,
maLogicalAdvancements,
- mpFont.get(),
+ mpFont,
mpFont->getFontMatrix(),
bAlphaSurface,
mnTextDirection != 0);
diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx
index ee4ec27b6f05..6940c7ea6ecd 100644
--- a/connectivity/source/drivers/ado/ADriver.cxx
+++ b/connectivity/source/drivers/ado/ADriver.cxx
@@ -180,7 +180,7 @@ Reference< XTablesSupplier > SAL_CALL ODriver::getDataDefinitionByConnection( co
auto foundConnection = std::any_of(m_xConnections.begin(), m_xConnections.end(),
[&pSearchConnection](const css::uno::WeakReferenceHelper& rxConnection) {
- return static_cast<OConnection*>(Reference< XConnection >::query(rxConnection.get().get()).get()) == pSearchConnection; });
+ return static_cast<OConnection*>(Reference< XConnection >::query(rxConnection.get()).get()) == pSearchConnection; });
if (foundConnection)
pConnection = pSearchConnection;
}
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx
index 1e74be1d0369..4022a700eca1 100644
--- a/winaccessibility/source/service/AccObjectWinManager.cxx
+++ b/winaccessibility/source/service/AccObjectWinManager.cxx
@@ -721,7 +721,7 @@ bool AccObjectWinManager::InsertAccObj( XAccessible* pXAcc,XAccessible* pParentX
Reference<XAccessibleEventBroadcaster> broadcaster(xComponent,UNO_QUERY);
if (broadcaster.is())
{
- Reference<XAccessibleEventListener> const xListener(pListener.get());
+ Reference<XAccessibleEventListener> const xListener(pListener);
broadcaster->addAccessibleEventListener(xListener);
}
else
diff --git a/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index be9fd22ba58e..13f10a6d7d74 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -235,7 +235,7 @@ MSAAServiceImpl::MSAAServiceImpl()
if( xToolkit.is() )
{
m_pTopWindowListener.set(new AccTopWindowListener());
- Reference<XTopWindowListener> const xRef(m_pTopWindowListener.get());
+ Reference<XTopWindowListener> const xRef(m_pTopWindowListener);
xToolkit->addTopWindowListener( xRef );
SAL_INFO( "iacc2", "successfully connected to the toolkit event hose" );
}