Skip to content

Commit

Permalink
CoordinateOperation::targetCoordinateEpoch(): use std::move() to avoi…
Browse files Browse the repository at this point in the history
…d copy (CID 406913)
  • Loading branch information
rouault committed Jul 24, 2023
1 parent 7c80355 commit c8f28e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iso19111/operation/singleoperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ CoordinateOperation::targetCoordinateEpoch() const {

void CoordinateOperation::setWeakSourceTargetCRS(
std::weak_ptr<crs::CRS> sourceCRSIn, std::weak_ptr<crs::CRS> targetCRSIn) {
d->sourceCRSWeak_ = sourceCRSIn;
d->targetCRSWeak_ = targetCRSIn;
d->sourceCRSWeak_ = std::move(sourceCRSIn);
d->targetCRSWeak_ = std::move(targetCRSIn);
}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit c8f28e4

Please sign in to comment.