Skip to content

Commit 7d78404

Browse files
Ashodcaolanm
authored andcommitted
wsd: move instead of copy
Change-Id: If2189d9de2f390252c18df33e53c2cb9ef00e353 Signed-off-by: Ashod Nakashian <[email protected]>
1 parent 0c92d20 commit 7d78404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wsd/AdminModel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class Document final
239239
std::chrono::milliseconds getWopiDownloadDuration() const { return _wopiDownloadDuration; }
240240
void setWopiUploadDuration(const std::chrono::milliseconds wopiUploadDuration) { _wopiUploadDuration = wopiUploadDuration; }
241241
std::chrono::milliseconds getWopiUploadDuration() const { return _wopiUploadDuration; }
242-
void setProcSMapsFp(std::weak_ptr<FILE> procSMaps) { _procSMaps = procSMaps; }
242+
void setProcSMapsFp(std::weak_ptr<FILE> procSMaps) { _procSMaps = std::move(procSMaps); }
243243
bool hasMemDirtyChanged() const { return _hasMemDirtyChanged; }
244244
void setMemDirtyChanged(bool changeStatus) { _hasMemDirtyChanged = changeStatus; }
245245
time_t getBadBehaviorDetectionTime() const { return _badBehaviorDetectionTime; }

0 commit comments

Comments
 (0)