diff options
author | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 08:52:29 +0000 |
---|---|---|
committer | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 08:52:29 +0000 |
commit | 4461e9ad89d45872bbd184e952087485168d3873 (patch) | |
tree | f7546fc98d1577718fb51c17f65766b6f2663322 /base/guid.cc | |
parent | 4961478f32fa5cbb1dd861bd5294f451765d7694 (diff) | |
download | chromium_src-4461e9ad89d45872bbd184e952087485168d3873.zip chromium_src-4461e9ad89d45872bbd184e952087485168d3873.tar.gz chromium_src-4461e9ad89d45872bbd184e952087485168d3873.tar.bz2 |
Minor clean-up in base/guid.*
BUG=None
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/24767002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/guid.cc')
-rw-r--r-- | base/guid.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/base/guid.cc b/base/guid.cc index 657383f..b7d79f2 100644 --- a/base/guid.cc +++ b/base/guid.cc @@ -4,9 +4,6 @@ #include "base/guid.h" -#include "base/rand_util.h" -#include "base/strings/stringprintf.h" - namespace base { bool IsValidGUID(const std::string& guid) { @@ -14,7 +11,7 @@ bool IsValidGUID(const std::string& guid) { if (guid.length() != kGUIDLength) return false; - std::string hexchars = "0123456789ABCDEF"; + const std::string hexchars = "0123456789ABCDEF"; for (uint32 i = 0; i < guid.length(); ++i) { char current = guid[i]; if (i == 8 || i == 13 || i == 18 || i == 23) { @@ -29,4 +26,4 @@ bool IsValidGUID(const std::string& guid) { return true; } -} // namespace guid +} // namespace base |