diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 09:41:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-10 08:22:26 +0100 |
commit | 96388e5e809a48573970df9b6b2649517a08447f (patch) | |
tree | c686721e917a0a1bb5cf27b3468bd80b3c62b416 /ucb/source/ucp/hierarchy | |
parent | 24dd6c5f9861340fafccad9504a99a939cbba0a6 (diff) |
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>
Diffstat (limited to 'ucb/source/ucp/hierarchy')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasource.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchyprovider.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index 04162051b46e..cfd4c5e500e5 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -212,7 +212,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_HierarchyDataSource_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new HierarchyDataSource(context))); + return cppu::acquire(new HierarchyDataSource(context)); } diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx index 4922802f55fd..c6ca49541d90 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx @@ -116,7 +116,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* ucb_HierarchyContentProvider_get_implementation( css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&) { - return cppu::acquire(static_cast<cppu::OWeakObject*>(new HierarchyContentProvider(context))); + return cppu::acquire(new HierarchyContentProvider(context)); } // XContentProvider methods. |