diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 05:50:25 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 05:50:25 +0000 |
commit | ed02c3263de09162ba21961ec80b56c25f52bada (patch) | |
tree | 72becf16723780e9782e290115df4b5b93c8d829 /chrome | |
parent | cd134c8c51d1c3f7ce35359f6cd6f090563ea0bd (diff) | |
download | chromium_src-ed02c3263de09162ba21961ec80b56c25f52bada.zip chromium_src-ed02c3263de09162ba21961ec80b56c25f52bada.tar.gz chromium_src-ed02c3263de09162ba21961ec80b56c25f52bada.tar.bz2 |
Fix mac valgrind.
Review URL: http://codereview.chromium.org/700001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/content_exceptions_window_controller.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/content_exceptions_window_controller.mm b/chrome/browser/cocoa/content_exceptions_window_controller.mm index 280ba9a..25a0dd5 100644 --- a/chrome/browser/cocoa/content_exceptions_window_controller.mm +++ b/chrome/browser/cocoa/content_exceptions_window_controller.mm @@ -365,9 +365,9 @@ static ContentExceptionsWindowController* // Get model object. bool isNewRow = newException_.get() && row >= model_->RowCount(); - const HostContentSettingsMap::HostSettingPair* originalEntry = - isNewRow ? newException_.get() : &model_->entry_at(row); - HostContentSettingsMap::HostSettingPair entry = *originalEntry; + HostContentSettingsMap::HostSettingPair originalEntry = + isNewRow ? *newException_ : model_->entry_at(row); + HostContentSettingsMap::HostSettingPair entry = originalEntry; // Modify it. NSString* identifier = [tableColumn identifier]; @@ -398,7 +398,7 @@ static ContentExceptionsWindowController* return; } } - if (entry != *originalEntry || isNewRow) + if (entry != originalEntry || isNewRow) [self updateRow:row withEntry:entry]; } |