Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: net/base/sdch_manager.cc

Issue 883753004: Fix missing .Pass() on returning scoped_ptr<SdchManager::DictionarySet> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2015-crl_set
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_manager.cc
diff --git a/net/base/sdch_manager.cc b/net/base/sdch_manager.cc
index 05787f328c1029f08cd6d3e4afe7ef39f5ec5083..27d86ee858f61e581c2197dca5edfe62eb2e2ea5 100644
--- a/net/base/sdch_manager.cc
+++ b/net/base/sdch_manager.cc
@@ -456,15 +456,15 @@ SdchManager::GetDictionarySetByHash(
*problem_code = SDCH_DICTIONARY_HASH_NOT_FOUND;
const auto& it = dictionaries_.find(server_hash);
if (it == dictionaries_.end())
- return result;
+ return result.Pass();
jamesr 2015/01/27 23:40:13 hmm, this should be an xvalue and thus not require
scottmg 2015/01/27 23:42:10 Sorry, I don't fully understand those words as wel
Nico 2015/01/27 23:51:32 jamesr: I think this is correct. This doesn't buil
jamesr 2015/01/27 23:57:24 come to think of it, why aren't these just "return
*problem_code = it->second->data.CanUse(target_url);
if (*problem_code != SDCH_OK)
- return result;
+ return result.Pass();
result.reset(new DictionarySet);
result->AddDictionary(it->first, it->second);
- return result;
+ return result.Pass();
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698