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

Unified Diff: ppapi/shared_impl/dictionary_var.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 | « ppapi/shared_impl/dictionary_var.h ('k') | ppapi/shared_impl/dir_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/dictionary_var.cc
diff --git a/ppapi/shared_impl/dictionary_var.cc b/ppapi/shared_impl/dictionary_var.cc
index 6a66ea374b282a4fc6e54279d6066d2d99ea8a67..54d201029e169e6d9b03246a000e4c27662625f2 100644
--- a/ppapi/shared_impl/dictionary_var.cc
+++ b/ppapi/shared_impl/dictionary_var.cc
@@ -12,11 +12,9 @@
namespace ppapi {
-DictionaryVar::DictionaryVar() {
-}
+DictionaryVar::DictionaryVar() {}
-DictionaryVar::~DictionaryVar() {
-}
+DictionaryVar::~DictionaryVar() {}
// static
DictionaryVar* DictionaryVar::FromPPVar(const PP_Var& var) {
@@ -30,13 +28,9 @@ DictionaryVar* DictionaryVar::FromPPVar(const PP_Var& var) {
return var_object->AsDictionaryVar();
}
-DictionaryVar* DictionaryVar::AsDictionaryVar() {
- return this;
-}
+DictionaryVar* DictionaryVar::AsDictionaryVar() { return this; }
-PP_VarType DictionaryVar::GetType() const {
- return PP_VARTYPE_DICTIONARY;
-}
+PP_VarType DictionaryVar::GetType() const { return PP_VARTYPE_DICTIONARY; }
PP_Var DictionaryVar::Get(const PP_Var& key) const {
StringVar* string_var = StringVar::FromPPVar(key);
@@ -86,10 +80,10 @@ PP_Var DictionaryVar::GetKeys() const {
array_var->elements().reserve(key_value_map_.size());
for (KeyValueMap::const_iterator iter = key_value_map_.begin();
- iter != key_value_map_.end(); ++iter) {
- array_var->elements().push_back(
- ScopedPPVar(ScopedPPVar::PassRef(),
- StringVar::StringToPPVar(iter->first)));
+ iter != key_value_map_.end();
+ ++iter) {
+ array_var->elements().push_back(ScopedPPVar(
+ ScopedPPVar::PassRef(), StringVar::StringToPPVar(iter->first)));
}
return array_var->GetPPVar();
}
« no previous file with comments | « ppapi/shared_impl/dictionary_var.h ('k') | ppapi/shared_impl/dir_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698