Skip to content

Commit

Permalink
[XrdCl] Add move assigment operator to PageInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal authored and gganis committed Nov 23, 2021
1 parent 04587e4 commit 575db98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/XrdCl/XrdClXRootDResponses.cc
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,15 @@ namespace XrdCl
{
}

//----------------------------------------------------------------------------
//! Move assigment operator
//----------------------------------------------------------------------------
PageInfo& PageInfo::operator=( PageInfo &&pginf )
{
pImpl.swap( pginf.pImpl );
return *this;
}

//----------------------------------------------------------------------------
// Destructor
//----------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions src/XrdCl/XrdClXRootDResponses.hh
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,11 @@ namespace XrdCl
//----------------------------------------------------------------------------
PageInfo( PageInfo &&pginf );

//----------------------------------------------------------------------------
//! Move assigment operator
//----------------------------------------------------------------------------
PageInfo& operator=( PageInfo &&pginf );

//----------------------------------------------------------------------------
//! Destructor
//----------------------------------------------------------------------------
Expand Down

0 comments on commit 575db98

Please sign in to comment.