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

Unified Diff: webrtc/base/cryptstring.h

Issue 1920043002: Replace scoped_ptr with unique_ptr in webrtc/base/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years, 8 months 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
« no previous file with comments | « webrtc/base/criticalsection_unittest.cc ('k') | webrtc/base/dbus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/cryptstring.h
diff --git a/webrtc/base/cryptstring.h b/webrtc/base/cryptstring.h
index a6bae51f89755f2be46a092cb5a46ad99b7754b6..adaac2f36bc21e8247709ae0c0617f190a5d41dd 100644
--- a/webrtc/base/cryptstring.h
+++ b/webrtc/base/cryptstring.h
@@ -13,11 +13,11 @@
#include <string.h>
+#include <memory>
#include <string>
#include <vector>
#include "webrtc/base/linked_ptr.h"
-#include "webrtc/base/scoped_ptr.h"
namespace rtc {
@@ -42,8 +42,8 @@ public:
};
class CryptString {
-public:
- CryptString();
+ public:
+ CryptString();
size_t GetLength() const { return impl_->GetLength(); }
void CopyTo(char * dest, bool nullterminate) const { impl_->CopyTo(dest, nullterminate); }
CryptString(const CryptString& other);
@@ -60,9 +60,9 @@ public:
void CopyRawTo(std::vector<unsigned char> * dest) const {
return impl_->CopyRawTo(dest);
}
-
-private:
- scoped_ptr<const CryptStringImpl> impl_;
+
+ private:
+ std::unique_ptr<const CryptStringImpl> impl_;
};
« no previous file with comments | « webrtc/base/criticalsection_unittest.cc ('k') | webrtc/base/dbus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698