summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:34:43 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 21:34:43 +0000
commit9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa (patch)
tree9ae9869615bb86a416adec42d4082298e165f0cf /chrome/test/automation
parente307f57e183fdc76986c918d37f284ab2940c343 (diff)
downloadchromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.zip
chromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.tar.gz
chromium_src-9fd5ef1c0abde8ab8a27b33100da9cbf8ca393aa.tar.bz2
Coverity: Initialize member variables.
CID=1631,9315,9316,9447,10912,13053,13396,13397,13449 BUG=none TEST=none Review URL: http://codereview.chromium.org/3934001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/autocomplete_edit_proxy.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/chrome/test/automation/autocomplete_edit_proxy.h b/chrome/test/automation/autocomplete_edit_proxy.h
index cfcf291..d9af03d 100644
--- a/chrome/test/automation/autocomplete_edit_proxy.h
+++ b/chrome/test/automation/autocomplete_edit_proxy.h
@@ -22,19 +22,26 @@
// autocomplete provider without the hassle of serializing it.
struct AutocompleteMatchData {
public:
- AutocompleteMatchData() {}
+ AutocompleteMatchData()
+ : relevance(0),
+ deletable(false),
+ inline_autocomplete_offset(0),
+ is_history_what_you_typed_match(false),
+ starred(false) {
+ }
+
explicit AutocompleteMatchData(const AutocompleteMatch& match)
- : provider_name(match.provider->name()),
- relevance(match.relevance),
- deletable(match.deletable),
- fill_into_edit(match.fill_into_edit),
- inline_autocomplete_offset(match.inline_autocomplete_offset),
- destination_url(match.destination_url),
- contents(match.contents),
- description(match.description),
- is_history_what_you_typed_match(match.is_history_what_you_typed_match),
- type(AutocompleteMatch::TypeToString(match.type)),
- starred(match.starred) {
+ : provider_name(match.provider->name()),
+ relevance(match.relevance),
+ deletable(match.deletable),
+ fill_into_edit(match.fill_into_edit),
+ inline_autocomplete_offset(match.inline_autocomplete_offset),
+ destination_url(match.destination_url),
+ contents(match.contents),
+ description(match.description),
+ is_history_what_you_typed_match(match.is_history_what_you_typed_match),
+ type(AutocompleteMatch::TypeToString(match.type)),
+ starred(match.starred) {
}
std::string provider_name;