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 | |
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')
-rw-r--r-- | sw/inc/section.hxx | 4 | ||||
-rw-r--r-- | sw/inc/swtable.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/crsr/bookmrk.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/swserv.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/docnode/section.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/graphic/ndgrf.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/inc/bookmrk.hxx | 9 | ||||
-rw-r--r-- | sw/source/core/table/swtable.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 12 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8glsy.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 8 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 28 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 10 |
15 files changed, 57 insertions, 60 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index 83f2b938c134..920ef8c13a43 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -213,8 +213,8 @@ public: // Data server methods. void SetRefObject( SwServerObject* pObj ); - const SwServerObject* GetObject() const { return & m_RefObj; } - SwServerObject* GetObject() { return & m_RefObj; } + const SwServerObject* GetObject() const { return m_RefObj.get(); } + SwServerObject* GetObject() { return m_RefObj.get(); } bool IsServer() const { return m_RefObj.Is(); } // Methods for linked ranges. diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx index 5d31a4383797..6e4251bbbfb7 100644 --- a/sw/inc/swtable.hxx +++ b/sw/inc/swtable.hxx @@ -308,8 +308,8 @@ public: // Data server methods. void SetRefObject( SwServerObject* ); - const SwServerObject* GetObject() const { return &m_xRefObj; } - SwServerObject* GetObject() { return &m_xRefObj; } + const SwServerObject* GetObject() const { return m_xRefObj.get(); } + SwServerObject* GetObject() { return m_xRefObj.get(); } // Fill data for chart. void UpdateCharts() const; diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index ec2f70b29ebc..2ba5c115b8f3 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -262,7 +262,7 @@ namespace sw { namespace mark { if(m_aRefObj->HasDataLinks()) { - ::sfx2::SvLinkSource* p = &m_aRefObj; + ::sfx2::SvLinkSource* p = m_aRefObj.get(); p->SendDataChanged(); } m_aRefObj->SetNoServer(); diff --git a/sw/source/core/doc/swserv.cxx b/sw/source/core/doc/swserv.cxx index bef09f11b3eb..05fe51c81cd0 100644 --- a/sw/source/core/doc/swserv.cxx +++ b/sw/source/core/doc/swserv.cxx @@ -309,7 +309,7 @@ SwDataChanged::~SwDataChanged() // Any one else interested in the Object? if( refObj->HasDataLinks() && dynamic_cast<const SwServerObject*>( refObj.get() ) != nullptr) { - SwServerObject& rObj = *static_cast<SwServerObject*>(&refObj); + SwServerObject& rObj = *static_cast<SwServerObject*>( refObj.get() ); if( pPos ) rObj.SendDataChanged( *pPos ); else diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index c46e1ea633aa..9504b745df24 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -248,7 +248,7 @@ SwSection::~SwSection() if (m_RefObj.Is()) { - pDoc->getIDocumentLinksAdministration().GetLinkManager().RemoveServer( &m_RefObj ); + pDoc->getIDocumentLinksAdministration().GetLinkManager().RemoveServer( m_RefObj.get() ); } // If the Section is the last Client in the Format we can delete it @@ -1275,7 +1275,7 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd ) sFilter, 0, pDoc->GetDocShell() ); if( nRet ) { - SwDoc* pSrcDoc = static_cast<SwDocShell*>(&xDocSh)->GetDoc(); + SwDoc* pSrcDoc = static_cast<SwDocShell*>( xDocSh.get() )->GetDoc(); eOldRedlineFlags = pSrcDoc->getIDocumentRedlineAccess().GetRedlineFlags(); pSrcDoc->getIDocumentRedlineAccess().SetRedlineFlags( RedlineFlags::ShowInsert ); } @@ -1298,7 +1298,7 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd ) static_cast<const SfxStringItem*>(pItem)->GetValue() ); } - SwDoc* pSrcDoc = static_cast<SwDocShell*>(&xDocSh)->GetDoc(); + SwDoc* pSrcDoc = static_cast<SwDocShell*>( xDocSh.get() )->GetDoc(); if( !sRange.isEmpty() ) { @@ -1388,8 +1388,8 @@ static void lcl_UpdateLinksInSect( SwBaseLink& rUpdLnk, SwSectionNode& rSectNd ) { if( 2 == nRet ) xDocSh->DoClose(); - else if( static_cast<SwDocShell*>(&xDocSh)->GetDoc() ) - static_cast<SwDocShell*>(&xDocSh)->GetDoc()->getIDocumentRedlineAccess().SetRedlineFlags( + else if( static_cast<SwDocShell*>( xDocSh.get() )->GetDoc() ) + static_cast<SwDocShell*>( xDocSh.get() )->GetDoc()->getIDocumentRedlineAccess().SetRedlineFlags( eOldRedlineFlags ); } } @@ -1513,7 +1513,7 @@ void SwSection::CreateLink( LinkCreateType eCreateType ) } SwIntrnlSectRefLink *const pLnk = - static_cast<SwIntrnlSectRefLink*>(& m_RefLink); + static_cast<SwIntrnlSectRefLink*>( m_RefLink.get() ); const OUString sCmd(SwSectionData::CollapseWhiteSpaces(m_Data.GetLinkFileName())); pLnk->SetUpdateMode( nUpdateType ); diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx index 36e1e37ba2d4..c1c747d9decb 100644 --- a/sw/source/core/graphic/ndgrf.cxx +++ b/sw/source/core/graphic/ndgrf.cxx @@ -131,7 +131,7 @@ SwGrfNode::SwGrfNode( const SwNodeIndex & rWhere, FStatHelper::IsDocument( aUrl.GetMainURL( INetURLObject::NO_DECODE ) )) { // file exists, so create connection without an update - static_cast<SwBaseLink*>(&refLink)->Connect(); + static_cast<SwBaseLink*>( refLink.get() )->Connect(); } } } @@ -172,7 +172,7 @@ bool SwGrfNode::ReRead( if( nNewType != refLink->GetObjType() ) { refLink->Disconnect(); - static_cast<SwBaseLink*>(&refLink)->SetObjType( nNewType ); + static_cast<SwBaseLink*>( refLink.get() )->SetObjType( nNewType ); } } @@ -214,7 +214,7 @@ bool SwGrfNode::ReRead( else if ( bNewGrf ) { //TODO refLink->setInputStream(getInputStream()); - static_cast<SwBaseLink*>(&refLink)->SwapIn(); + static_cast<SwBaseLink*>( refLink.get() )->SwapIn(); } } onGraphicChanged(); @@ -249,7 +249,7 @@ bool SwGrfNode::ReRead( onGraphicChanged(); bReadGrf = true; // create connection without update, as we have the graphic - static_cast<SwBaseLink*>(&refLink)->Connect(); + static_cast<SwBaseLink*>( refLink.get() )->Connect(); } else if( pGrfObj ) { @@ -258,7 +258,7 @@ bool SwGrfNode::ReRead( onGraphicChanged(); bReadGrf = true; // create connection without update, as we have the graphic - static_cast<SwBaseLink*>(&refLink)->Connect(); + static_cast<SwBaseLink*>( refLink.get() )->Connect(); } else { @@ -268,7 +268,7 @@ bool SwGrfNode::ReRead( onGraphicChanged(); if ( bNewGrf ) { - static_cast<SwBaseLink*>(&refLink)->SwapIn(); + static_cast<SwBaseLink*>( refLink.get() )->SwapIn(); } } } diff --git a/sw/source/core/inc/bookmrk.hxx b/sw/source/core/inc/bookmrk.hxx index 8972d7d08945..6e1866002f0f 100644 --- a/sw/source/core/inc/bookmrk.hxx +++ b/sw/source/core/inc/bookmrk.hxx @@ -139,13 +139,10 @@ namespace sw { public: DdeBookmark(const SwPaM& rPaM); - const SwServerObject* GetRefObject() const - { return &m_aRefObj; } - SwServerObject* GetRefObject() - { return &m_aRefObj; } + const SwServerObject* GetRefObject() const { return m_aRefObj.get(); } + SwServerObject* GetRefObject() { return m_aRefObj.get(); } - bool IsServer() const - { return m_aRefObj.Is(); } + bool IsServer() const { return m_aRefObj.Is(); } void SetRefObject( SwServerObject* pObj ); diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx index 5558fa8bcf09..f56f9bb6c7f0 100644 --- a/sw/source/core/table/swtable.cxx +++ b/sw/source/core/table/swtable.cxx @@ -244,7 +244,7 @@ SwTable::~SwTable() { SwDoc* pDoc = GetFrameFormat()->GetDoc(); if( !pDoc->IsInDtor() ) // then remove from the list - pDoc->getIDocumentLinksAdministration().GetLinkManager().RemoveServer( &m_xRefObj ); + pDoc->getIDocumentLinksAdministration().GetLinkManager().RemoveServer( m_xRefObj.get() ); m_xRefObj->Closed(); } diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 224f961d0f9e..7afa9443646e 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -3230,9 +3230,9 @@ void WW8Export::ExportDocument_Impl() xTableStrm->SetEndian( SvStreamEndian::LITTLE ); xDataStrm->SetEndian( SvStreamEndian::LITTLE ); - GetWriter().SetStream( & *xWwStrm ); - pTableStrm = &xTableStrm; - pDataStrm = &xDataStrm; + GetWriter().SetStream( xWwStrm.get() ); + pTableStrm = xTableStrm.get(); + pDataStrm = xDataStrm.get(); Strm().SetEndian( SvStreamEndian::LITTLE ); @@ -3311,9 +3311,9 @@ void WW8Export::ExportDocument_Impl() if ( bEncrypt ) { SvStream *pStrmTemp, *pTableStrmTemp, *pDataStrmTemp; - pStrmTemp = &xWwStrm; - pTableStrmTemp = &xTableStrm; - pDataStrmTemp = &xDataStrm; + pStrmTemp = xWwStrm.get(); + pTableStrmTemp = xTableStrm.get(); + pDataStrmTemp = xDataStrm.get(); if ( pDataStrmTemp && pDataStrmTemp != pStrmTemp) EncryptRC4(aCtx, *pDataStrm, *pDataStrmTemp); diff --git a/sw/source/filter/ww8/ww8glsy.cxx b/sw/source/filter/ww8/ww8glsy.cxx index f25d66e4e956..3b335d128a6f 100644 --- a/sw/source/filter/ww8/ww8glsy.cxx +++ b/sw/source/filter/ww8/ww8glsy.cxx @@ -222,7 +222,7 @@ bool WW8Glossary::Load( SwTextBlocks &rBlocks, bool bSaveRelFile ) aPamo.GetPoint()->nContent.Assign(aIdx.GetNode().GetContentNode(), 0); std::unique_ptr<SwWW8ImplReader> xRdr(new SwWW8ImplReader( - pGlossary->m_nVersion, xStg.get(), &rStrm, *pD, rBlocks.GetBaseURL(), + pGlossary->m_nVersion, xStg.get(), rStrm.get(), *pD, rBlocks.GetBaseURL(), true, false, *aPamo.GetPoint())); xRdr->LoadDoc(this); bRet = MakeEntries(pD, rBlocks, bSaveRelFile, aStrings, aData); diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 1bb031e8b3cc..35320c4db4c9 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -5440,7 +5440,7 @@ sal_uLong SwWW8ImplReader::SetSubStreams(tools::SvRef<SotStorageStream> &rTableS m_pWwFib->m_fWhichTableStm ? SL::a1Table : SL::a0Table), StreamMode::STD_READ); - m_pTableStream = &rTableStream; + m_pTableStream = rTableStream.get(); m_pTableStream->SetEndian( SvStreamEndian::LITTLE ); rDataStream = m_pStg->OpenSotStream(OUString(SL::aData), @@ -5448,7 +5448,7 @@ sal_uLong SwWW8ImplReader::SetSubStreams(tools::SvRef<SotStorageStream> &rTableS if (rDataStream.Is() && SVSTREAM_OK == rDataStream->GetError()) { - m_pDataStream = &rDataStream; + m_pDataStream = rDataStream.get(); m_pDataStream->SetEndian(SvStreamEndian::LITTLE); } else @@ -6218,7 +6218,7 @@ sal_uLong WW8Reader::Read(SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, co if( pStg.Is() ) { nRet = OpenMainStream( refStrm, nOldBuffSize ); - pIn = &refStrm; + pIn = refStrm.get(); } else { 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 diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index d4a3514f30dc..8cdd2b8155ad 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -1516,17 +1516,17 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt) SbxArrayRef xArgs = new SbxArray; SbxVariableRef xVar = new SbxVariable; xVar->PutString( pFlyFormat->GetName() ); - xArgs->Put( &xVar, 1 ); + xArgs->Put( xVar.get(), 1 ); xVar = new SbxVariable; if( SW_EVENT_FRM_KEYINPUT_ALPHA == nEvent ) xVar->PutChar( aCh ); else xVar->PutUShort( rKeyCode.GetModifier() | rKeyCode.GetCode() ); - xArgs->Put( &xVar, 2 ); + xArgs->Put( xVar.get(), 2 ); OUString sRet; - rSh.ExecMacro( *pMacro, &sRet, &xArgs ); + rSh.ExecMacro( *pMacro, &sRet, xArgs.get() ); if( !sRet.isEmpty() && sRet.toInt32()!=0 ) return ; } @@ -4086,27 +4086,27 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt) SbxArrayRef xArgs = new SbxArray; SbxVariableRef xVar = new SbxVariable; xVar->PutString( pFlyFormat->GetName() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); if( SW_EVENT_FRM_RESIZE == nEvent ) { xVar = new SbxVariable; xVar->PutUShort( static_cast< sal_uInt16 >(g_eSdrMoveHdl) ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); } xVar = new SbxVariable; xVar->PutLong( aDocPt.X() - aSttPt.X() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); xVar = new SbxVariable; xVar->PutLong( aDocPt.Y() - aSttPt.Y() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); OUString sRet; ReleaseMouse(); - rSh.ExecMacro( *pMacro, &sRet, &xArgs ); + rSh.ExecMacro( *pMacro, &sRet, xArgs.get() ); CaptureMouse(); @@ -4549,29 +4549,29 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) SbxArrayRef xArgs = new SbxArray; SbxVariableRef xVar = new SbxVariable; xVar->PutString( pFlyFormat->GetName() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); if( SW_EVENT_FRM_RESIZE == nEvent ) { xVar = new SbxVariable; xVar->PutUShort( static_cast< sal_uInt16 >(eOldSdrMoveHdl) ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); } xVar = new SbxVariable; xVar->PutLong( aDocPt.X() - aSttPt.X() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); xVar = new SbxVariable; xVar->PutLong( aDocPt.Y() - aSttPt.Y() ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); xVar = new SbxVariable; xVar->PutUShort( 1 ); - xArgs->Put( &xVar, ++nPos ); + xArgs->Put( xVar.get(), ++nPos ); ReleaseMouse(); - rSh.ExecMacro( *pMacro, nullptr, &xArgs ); + rSh.ExecMacro( *pMacro, nullptr, xArgs.get() ); CaptureMouse(); } diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index bc1a23105f11..428b12ee708c 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -2266,9 +2266,9 @@ long SwView::InsertMedium( sal_uInt16 nSlotId, SfxMedium* pMedium, sal_Int16 nVe m_pWrtShell->EnterStdMode(); // delete selections if( bCompare ) - nFound = m_pWrtShell->CompareDoc( *static_cast<SwDocShell*>(&xDocSh)->GetDoc() ); + nFound = m_pWrtShell->CompareDoc( *static_cast<SwDocShell*>( xDocSh.get() )->GetDoc() ); else - nFound = m_pWrtShell->MergeDoc( *static_cast<SwDocShell*>(&xDocSh)->GetDoc() ); + nFound = m_pWrtShell->MergeDoc( *static_cast<SwDocShell*>( xDocSh.get() )->GetDoc() ); m_pWrtShell->EndAllAction(); 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); |