diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-04-15 23:31:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-04-15 23:31:00 +0900 |
| commit | 8fc28a9e4381ac4317d0536919c6e8d56f91687c (patch) | |
| tree | c37675de9de181817b22f78b617d052038413f1a | |
| parent | cf1dd06d034cc02eea1e8ff65bd602902be37ac8 (diff) | |
clang-format
| -rw-r--r-- | src/OptionHandlerImpl.cc | 2 | ||||
| -rw-r--r-- | src/RpcMethodFactory.cc | 14 | ||||
| -rw-r--r-- | src/RpcMethodImpl.cc | 2 |
3 files changed, 11 insertions, 7 deletions
diff --git a/src/OptionHandlerImpl.cc b/src/OptionHandlerImpl.cc index af17c176..3b66e3ae 100644 --- a/src/OptionHandlerImpl.cc +++ b/src/OptionHandlerImpl.cc @@ -623,7 +623,7 @@ void OptimizeConcurrentDownloadsOptionHandler::parseArg( PrefPtr pref = PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFA; std::string* sptr = &coeff_a; for (;;) { - char *end; + char* end; errno = 0; auto dbl = strtod(sptr->c_str(), &end); if (errno != 0 || sptr->c_str() + sptr->size() != end) { diff --git a/src/RpcMethodFactory.cc b/src/RpcMethodFactory.cc index 82579b9e..0e276f8a 100644 --- a/src/RpcMethodFactory.cc +++ b/src/RpcMethodFactory.cc @@ -76,15 +76,19 @@ const std::vector<std::string>& allMethodNames() { return rpcMethodNames; } namespace { std::vector<std::string> rpcNotificationsNames = { - "aria2.onDownloadStart", "aria2.onDownloadPause", "aria2.onDownloadStop", - "aria2.onDownloadComplete", "aria2.onDownloadError", - #ifdef ENABLE_BITTORRENT + "aria2.onDownloadStart", "aria2.onDownloadPause", + "aria2.onDownloadStop", "aria2.onDownloadComplete", + "aria2.onDownloadError", +#ifdef ENABLE_BITTORRENT "aria2.onBtDownloadComplete", - #endif // ENABLE_BITTORRENT +#endif // ENABLE_BITTORRENT }; } // namespace -const std::vector<std::string>& allNotificationsNames() { return rpcNotificationsNames; } +const std::vector<std::string>& allNotificationsNames() +{ + return rpcNotificationsNames; +} namespace { std::unique_ptr<RpcMethod> createMethod(const std::string& methodName) diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index d727501c..3b2c7d39 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1453,7 +1453,7 @@ RpcResponse SystemListMethodsRpcMethod::execute(RpcRequest req, std::unique_ptr<ValueBase> SystemListNotificationsRpcMethod::process(const RpcRequest& req, - DownloadEngine* e) + DownloadEngine* e) { auto list = List::g(); for (auto& s : allNotificationsNames()) { |
