diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 23:08:02 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 23:08:02 +0000 |
commit | 2fdc86af6441d62cf6f3af049ac4cab1984d5323 (patch) | |
tree | 4a548a889f1c261676bdd4b6ccbca4255cea1c5e /base/registry.cc | |
parent | 7e7a62b46abc05baaa5e969fd64cff485857c1b6 (diff) | |
download | chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.zip chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.gz chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.bz2 |
Style cleanup in preparation for auto-linting base/.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/552004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/registry.cc')
-rw-r--r-- | base/registry.cc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/base/registry.cc b/base/registry.cc index e5709f2..bdd3089 100644 --- a/base/registry.cc +++ b/base/registry.cc @@ -51,7 +51,7 @@ bool RegistryValueIterator::Valid() const { 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 @@ bool RegistryKeyIterator::Valid() const { return key_ != NULL && index_ >= 0; } -void RegistryKeyIterator::operator ++ () { +void RegistryKeyIterator::operator++() { // advance to the next entry in the folder --index_; Read(); @@ -163,8 +163,9 @@ RegKey::RegKey(HKEY rootkey, const tchar* subkey, REGSAM access) this->Create(rootkey, subkey, access); else this->Open(rootkey, subkey, access); + } else { + assert(!subkey); } - else assert(!subkey); } void RegKey::Close() { @@ -198,7 +199,8 @@ bool RegKey::CreateWithDisposition(HKEY rootkey, const tchar* subkey, key_ = NULL; return false; } - else return true; + + return true; } bool RegKey::Open(HKEY rootkey, const tchar* subkey, REGSAM access) { @@ -211,7 +213,8 @@ bool RegKey::Open(HKEY rootkey, const tchar* subkey, REGSAM access) { key_ = NULL; return false; } - else return true; + + return true; } bool RegKey::CreateKey(const tchar* name, REGSAM access) { @@ -297,7 +300,8 @@ bool RegKey::ReadValue(const tchar* name, tstr * value) { } return true; } - else return false; + + return false; } bool RegKey::ReadValueDW(const tchar* name, DWORD * value) { @@ -309,7 +313,8 @@ bool RegKey::ReadValueDW(const tchar* name, DWORD * value) { *value = result; return true; } - else return false; + + return false; } bool RegKey::WriteValue(const tchar* name, |