diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-21 21:56:42 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-21 21:56:42 +0900 |
| commit | 3832ed97c616eff0057d7a0e5a161c4282537160 (patch) | |
| tree | ac69085552ddce55eed873ab1b4e359805fc5961 /src/AbstractCommand.cc | |
| parent | 20e781c2df1fa961a09edafe1ff02202278e3636 (diff) | |
Rewritten Option. Introduced Pref.
Now preference key is Pref instead of just string. It has Option
ID. Now option lookup and setting takes O(1) using Pref object.
Diffstat (limited to 'src/AbstractCommand.cc')
| -rw-r--r-- | src/AbstractCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index 39baebc0..491a9a24 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -545,7 +545,7 @@ void AbstractCommand::setWriteCheckSocketIf namespace { // Returns proxy option value for the given protocol. const std::string& getProxyOptionFor -(const std::string& proxyPref, const SharedHandle<Option>& option) +(const Pref* proxyPref, const SharedHandle<Option>& option) { if(option->defined(proxyPref)) { return option->get(proxyPref); |
