Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: remoting/host/win/security_descriptor.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/win/security_descriptor.cc
diff --git a/remoting/host/win/security_descriptor.cc b/remoting/host/win/security_descriptor.cc
index 886fae9276a1ff5f4e092321e576b61ff7b5b781..1187f117e3ce1626088f179870dbfd1f7188d05f 100644
--- a/remoting/host/win/security_descriptor.cc
+++ b/remoting/host/win/security_descriptor.cc
@@ -23,7 +23,7 @@ ScopedSd ConvertSddlToSd(const std::string& sddl) {
memcpy(sd.get(), raw_sd, length);
LocalFree(raw_sd);
- return sd.Pass();
+ return sd;
}
// Converts a SID into a text string.
@@ -58,7 +58,7 @@ ScopedSid GetLogonSid(HANDLE token) {
if (!CopySid(length, logon_sid.get(), groups->Groups[i].Sid))
return ScopedSid();
- return logon_sid.Pass();
+ return logon_sid;
}
}

Powered by Google App Engine
This is Rietveld 408576698