diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-04 23:21:01 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-04 23:21:01 +0900 |
| commit | c0e4381780ae05969aea56a1a11f598f5edce3d8 (patch) | |
| tree | f780e5ca0b5d693e43df549d47accd8ac9f15010 /src/RpcMethodImpl.cc | |
| parent | 007b890fe4d61f3f2cf26dce9f466b3b0fc709d2 (diff) | |
util::parseIntSegments: Return SegList<int>
Diffstat (limited to 'src/RpcMethodImpl.cc')
| -rw-r--r-- | src/RpcMethodImpl.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index 375f4e3d..d1a7df29 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1457,10 +1457,9 @@ void changeOption dctx->setDigest(hashType, util::fromHex(p.second.first, p.second.second)); } if(option.defined(PREF_SELECT_FILE)) { - SegList<int> sgl; - util::parseIntSegments(sgl, grOption->get(PREF_SELECT_FILE)); + auto sgl = util::parseIntSegments(grOption->get(PREF_SELECT_FILE)); sgl.normalize(); - dctx->setFileFilter(sgl); + dctx->setFileFilter(std::move(sgl)); } if(option.defined(PREF_SPLIT)) { group->setNumConcurrentCommand(grOption->getAsInt(PREF_SPLIT)); |
