Skip to content

Commit c8f28e4

Browse files
committed
CoordinateOperation::targetCoordinateEpoch(): use std::move() to avoid copy (CID 406913)
1 parent 7c80355 commit c8f28e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iso19111/operation/singleoperation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ CoordinateOperation::targetCoordinateEpoch() const {
218218

219219
void CoordinateOperation::setWeakSourceTargetCRS(
220220
std::weak_ptr<crs::CRS> sourceCRSIn, std::weak_ptr<crs::CRS> targetCRSIn) {
221-
d->sourceCRSWeak_ = sourceCRSIn;
222-
d->targetCRSWeak_ = targetCRSIn;
221+
d->sourceCRSWeak_ = std::move(sourceCRSIn);
222+
d->targetCRSWeak_ = std::move(targetCRSIn);
223223
}
224224

225225
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)