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

Unified Diff: base/registry.cc

Issue 249363004: Revert of Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 6 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/rand_util.h ('k') | base/resource_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/registry.cc
diff --git a/base/registry.cc b/base/registry.cc
index bdd3089d420bee1caa426080466b7355cfdf806e..e5709f2344a8af03bcec981aa50debbae5be2612 100644
--- a/base/registry.cc
+++ b/base/registry.cc
@@ -51,7 +51,7 @@
return key_ != NULL && index_ >= 0;
}
-void RegistryValueIterator::operator++() {
+void RegistryValueIterator::operator ++ () {
// advance to the next entry in the folder
--index_;
Read();
@@ -120,7 +120,7 @@
return key_ != NULL && index_ >= 0;
}
-void RegistryKeyIterator::operator++() {
+void RegistryKeyIterator::operator ++ () {
// advance to the next entry in the folder
--index_;
Read();
@@ -163,9 +163,8 @@
this->Create(rootkey, subkey, access);
else
this->Open(rootkey, subkey, access);
- } else {
- assert(!subkey);
- }
+ }
+ else assert(!subkey);
}
void RegKey::Close() {
@@ -199,8 +198,7 @@
key_ = NULL;
return false;
}
-
- return true;
+ else return true;
}
bool RegKey::Open(HKEY rootkey, const tchar* subkey, REGSAM access) {
@@ -213,8 +211,7 @@
key_ = NULL;
return false;
}
-
- return true;
+ else return true;
}
bool RegKey::CreateKey(const tchar* name, REGSAM access) {
@@ -300,8 +297,7 @@
}
return true;
}
-
- return false;
+ else return false;
}
bool RegKey::ReadValueDW(const tchar* name, DWORD * value) {
@@ -313,8 +309,7 @@
*value = result;
return true;
}
-
- return false;
+ else return false;
}
bool RegKey::WriteValue(const tchar* name,
« no previous file with comments | « base/rand_util.h ('k') | base/resource_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698