From da1c36d03ec9553a5da53b21b18e1b946d45dcff Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Mon, 10 Oct 2011 14:02:29 +0000 Subject: Extracting the config file class from the Inspector to be able to reuse it. This will be needed for iOS implementation, where the Inspector won't be used, but where a config file will still be needed, because the uploads won't happen just after the crash, but on a next run. Review URL: http://breakpad.appspot.com/309001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@852 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/SimpleStringDictionary.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/mac/SimpleStringDictionary.mm') diff --git a/src/common/mac/SimpleStringDictionary.mm b/src/common/mac/SimpleStringDictionary.mm index d9c791cc..b97b760c 100644 --- a/src/common/mac/SimpleStringDictionary.mm +++ b/src/common/mac/SimpleStringDictionary.mm @@ -55,13 +55,13 @@ int SimpleStringDictionary::GetCount() const { } //============================================================================== -const char *SimpleStringDictionary::GetValueForKey(const char *key) { +const char *SimpleStringDictionary::GetValueForKey(const char *key) const { assert(key); if (!key) return NULL; for (int i = 0; i < MAX_NUM_ENTRIES; ++i) { - KeyValueEntry &entry = entries_[i]; + const KeyValueEntry &entry = entries_[i]; if (entry.IsActive() && !strcmp(entry.GetKey(), key)) { return entry.GetValue(); } -- cgit v1.2.1