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

Unified Diff: base/i18n/message_formatter.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/i18n/icu_util.cc ('k') | base/i18n/message_formatter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/message_formatter.h
diff --git a/base/i18n/message_formatter.h b/base/i18n/message_formatter.h
index 4a5b92f2aabea03e83dc719b383072893b3a8b9a..439402380d2d382b8917c7bcc4b97b54308d15ca 100644
--- a/base/i18n/message_formatter.h
+++ b/base/i18n/message_formatter.h
@@ -6,11 +6,12 @@
#define BASE_I18N_MESSAGE_FORMATTER_H_
#include <stdint.h>
+
+#include <memory>
#include <string>
#include "base/i18n/base_i18n_export.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
#include "third_party/icu/source/common/unicode/uversion.h"
@@ -46,7 +47,7 @@ class BASE_I18N_EXPORT MessageArg {
MessageArg();
// Tests if this argument has a value, and if so increments *count.
bool has_value(int* count) const;
- scoped_ptr<icu::Formattable> formattable;
+ std::unique_ptr<icu::Formattable> formattable;
DISALLOW_COPY_AND_ASSIGN(MessageArg);
};
« no previous file with comments | « base/i18n/icu_util.cc ('k') | base/i18n/message_formatter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698