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/uno/unoatxt.cxx | |
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/uno/unoatxt.cxx')
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index e61116d03218..47a09f94c807 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -751,7 +751,7 @@ void SwXAutoTextEntry::implFlushDocument( bool _bCloseDoc ) if ( _bCloseDoc ) { // stop listening at the document - EndListening( *&xDocSh ); + EndListening( *xDocSh ); xDocSh->DoClose(); xDocSh.Clear(); @@ -761,7 +761,7 @@ void SwXAutoTextEntry::implFlushDocument( bool _bCloseDoc ) void SwXAutoTextEntry::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint ) { - if ( &_rBC == &xDocSh ) + if ( &_rBC == xDocSh.get() ) { // it's our document if (const SfxEventHint* pEventHint = dynamic_cast<const SfxEventHint*>(&_rHint)) { @@ -769,7 +769,7 @@ void SwXAutoTextEntry::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint ) { implFlushDocument(); xBodyText = nullptr; - EndListening( *&xDocSh ); + EndListening( *xDocSh ); xDocSh.Clear(); } } @@ -780,7 +780,7 @@ void SwXAutoTextEntry::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint ) // our document is dying (possibly because we're shuting down, and the document was notified // earlier than we are?) // stop listening at the docu - EndListening( *&xDocSh ); + EndListening( *xDocSh ); // and release our reference xDocSh.Clear(); } @@ -796,7 +796,7 @@ void SwXAutoTextEntry::GetBodyText () OSL_ENSURE( xDocSh.Is(), "SwXAutoTextEntry::GetBodyText: unexpected: no doc returned by EditGroupDoc!" ); // start listening at the document - StartListening( *&xDocSh ); + StartListening( *xDocSh ); pBodyText = new SwXBodyText ( xDocSh->GetDoc() ); xBodyText.set( *pBodyText, uno::UNO_QUERY); |