| 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,
|
|
|