Drop 'static_cast<cppu::OWeakObject*>' syntactic noise

... where the object is created in-place, and its type is known

Change-Id: Ifabfcf2f3ad0d60152f14e8d970c1faa42115288
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112256
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2021-03-10 08:22:26 +01:00
parent 24dd6c5f98
commit 96388e5e80
56 changed files with 66 additions and 68 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
com_sun_star_comp_bridge_BridgeFactory_get_implementation(
css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
{
return cppu::acquire(static_cast< cppu::OWeakObject * >(new binaryurp::BridgeFactory));
return cppu::acquire(new binaryurp::BridgeFactory);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */