diff options
author | Jacek Fraczek <fraczek.jacek@gmail.com> | 2016-10-12 20:04:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-18 09:27:56 +0000 |
commit | 398d641664baa6eaeb34789f0aebfd21e73edef3 (patch) | |
tree | f3185bdf569f8c9454e832cc8d7f08ce75f033a2 /sw/source/uibase/dochdl | |
parent | c5c24f2035ef5941e83f7f0b15cb000f806983cd (diff) |
tdf#89307: Removed T* SvRef::opeartor &()
Usage has been replaced with SvRef::get() or removed where applicable.
Change-Id: I49f108910b668466134c40940b53fc3ab2acd816
Reviewed-on: https://gerrit.libreoffice.org/29780
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 3f7c245404aa..36e01d17d640 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -242,7 +242,7 @@ SwTransferable::~SwTransferable() // the DDELink still needs the WrtShell! if( m_xDdeLink.Is() ) { - static_cast<SwTrnsfrDdeLink*>(&m_xDdeLink)->Disconnect( true ); + static_cast<SwTrnsfrDdeLink*>( m_xDdeLink.get() )->Disconnect( true ); m_xDdeLink.Clear(); } @@ -522,7 +522,7 @@ bool SwTransferable::GetData( const DataFlavor& rFlavor, const OUString& rDestDo { case SotClipboardFormatId::LINK: if( m_xDdeLink.Is() ) - bOK = SetObject( &m_xDdeLink, SWTRANSFER_OBJECTTYPE_DDE, rFlavor ); + bOK = SetObject( m_xDdeLink.get(), SWTRANSFER_OBJECTTYPE_DDE, rFlavor ); break; case SotClipboardFormatId::OBJECTDESCRIPTOR: @@ -1659,7 +1659,7 @@ bool SwTransferable::PasteFileContent( TransferableDataHelper& rData, } else { - pStream = &xStrm; + pStream = xStrm.get(); if( SotClipboardFormatId::RTF == nFormat ) pRead = SwReaderWriter::GetRtfReader(); else if( !pRead ) @@ -3733,7 +3733,7 @@ bool SwTrnsfrDdeLink::WriteData( SvStream& rStrm ) // the mark is still a DdeBookmark // we replace it with a Bookmark, so it will get saved etc. ::sw::mark::IMark* const pMark = ppMark->get(); - ::sfx2::SvLinkSource* p = &refObj; + ::sfx2::SvLinkSource* p = refObj.get(); SwServerObject& rServerObject = dynamic_cast<SwServerObject&>(*p); // collecting state of old mark |