diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-11 16:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-18 13:45:03 +0100 |
commit | 1ad26c9fc237e00247f18fcc8ccc778fba88d1fd (patch) | |
tree | 0df230e3bfb929be219e5ef2f8d1574a83a6c959 /include | |
parent | 653e9627828adafc833fd179cea495f4b6e409ce (diff) |
loplugin:referencecasting add check for new rtl::Reference operator
rtl::Reference now has a conversion operator to uno::Reference,
so look for places where we can simplify the code and use that.
Change-Id: Ic81db50d670bed5e875300577d4bf5f3599cc2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110798
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/transfer.hxx | 6 | ||||
-rw-r--r-- | include/xmloff/xmlexp.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/transfer.hxx b/include/vcl/transfer.hxx index f7c41fafa00b..d24fd560de31 100644 --- a/include/vcl/transfer.hxx +++ b/include/vcl/transfer.hxx @@ -177,7 +177,7 @@ protected: const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& getOwnClipboard() const { return mxClipboard; } -private: +public: // XTransferable virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& rFlavor ) override; @@ -189,6 +189,8 @@ private: const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) override; virtual sal_Bool SAL_CALL isComplex() override; +private: + // XEventListener virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override; @@ -199,8 +201,6 @@ private: virtual void SAL_CALL dragOver( const css::datatransfer::dnd::DragSourceDragEvent& dsde ) override; virtual void SAL_CALL dropActionChanged( const css::datatransfer::dnd::DragSourceDragEvent& dsde ) override; -private: - // XClipboardOwner virtual void SAL_CALL lostOwnership( const css::uno::Reference< css::datatransfer::clipboard::XClipboard >& xClipboard, const css::uno::Reference< css::datatransfer::XTransferable >& xTrans ) override; diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx index 7ea66274bb54..d1925585431d 100644 --- a/include/xmloff/xmlexp.hxx +++ b/include/xmloff/xmlexp.hxx @@ -378,7 +378,7 @@ public: // Get common attribute list as implementation or interface. SvXMLAttributeList &GetAttrList() { return *mxAttrList; } - css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() { return mxAttrList.get(); } + css::uno::Reference< css::xml::sax::XAttributeList > GetXAttrList() { return mxAttrList; } // Get document handler. This methods are not const, because the // reference allows modifications through the handler. |