diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 19:39:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-09 07:14:51 +0100 |
commit | 2d40c43e868494abb87b405680f9c5ef460293cc (patch) | |
tree | 80ac9495557fd060fa6d092e42fccf8354c9ff98 /stoc | |
parent | 97e47e7b004945d3ac28a9262df371ca2faf1903 (diff) |
loplugin:redundantfcast look for unnecessary temporaries
when calling methods that take a const&
Change-Id: Idf45dfd9fea0de6fae0b1f89550f2f7fc302aa15
Reviewed-on: https://gerrit.libreoffice.org/50970
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index cc2b74aae0c7..b51446c639fa 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -259,8 +259,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL css::uno::Reference<XInitialization> javaLoader_XInitialization(m_javaLoader, UNO_QUERY_THROW); Any any; - any <<= css::uno::Reference<XMultiComponentFactory>( - m_xComponentContext->getServiceManager()); + any <<= m_xComponentContext->getServiceManager(); javaLoader_XInitialization->initialize(Sequence<Any>(&any, 1)); } |