Kaydet (Commit) 7d710ee0 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in XclImpChangeTrack

Change-Id: I360720b5c0402982e58416f9c902388034e5ecee
Reviewed-on: https://gerrit.libreoffice.org/57301
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ffc08c68
......@@ -55,8 +55,8 @@ private:
OUString sOldUsername;
std::unique_ptr<ScChangeTrack> pChangeTrack;
tools::SvRef<SotStorageStream> xInStrm; // input stream
XclImpStream* pStrm; // stream import class
tools::SvRef<SotStorageStream> xInStrm; // input stream
std::unique_ptr<XclImpStream> pStrm; // stream import class
sal_uInt16 nTabIdCount;
bool bGlobExit; // global exit loop
......
......@@ -56,7 +56,7 @@ XclImpChangeTrack::XclImpChangeTrack( const XclImpRoot& rRoot, const XclImpStrea
if( (xInStrm->GetErrorCode() == ERRCODE_NONE) && (nStreamLen != STREAM_SEEK_TO_END) )
{
xInStrm->Seek( STREAM_SEEK_TO_BEGIN );
pStrm = new XclImpStream( *xInStrm, GetRoot() );
pStrm.reset( new XclImpStream( *xInStrm, GetRoot() ) );
pStrm->CopyDecrypterFrom( rBookStrm );
pChangeTrack.reset(new ScChangeTrack( &GetDocRef() ));
......@@ -71,7 +71,7 @@ XclImpChangeTrack::XclImpChangeTrack( const XclImpRoot& rRoot, const XclImpStrea
XclImpChangeTrack::~XclImpChangeTrack()
{
pChangeTrack.reset();
delete pStrm;
pStrm.reset();
}
void XclImpChangeTrack::DoAcceptRejectAction( ScChangeAction* pAction )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment