summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-08-19 23:40:28 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-08-19 23:40:28 +0900
commit7b04c841d693400c76fc711291ff006fabc43089 (patch)
treed3b3d2c7d6d0ea7dddb680501816e6944f1b98eb /src/DownloadEngine.cc
parent7f049dc2a480f55131c96def2226084e48f49d60 (diff)
Code cleanup
Diffstat (limited to 'src/DownloadEngine.cc')
-rw-r--r--src/DownloadEngine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc
index 3b70364b..9f3283dc 100644
--- a/src/DownloadEngine.cc
+++ b/src/DownloadEngine.cc
@@ -122,7 +122,7 @@ void executeCommand(std::deque<std::unique_ptr<Command>>& commands,
{
size_t max = commands.size();
for(size_t i = 0; i < max; ++i) {
- std::unique_ptr<Command> com = std::move(commands.front());
+ auto com = std::move(commands.front());
commands.pop_front();
if(com->statusMatch(statusFilter)) {
com->transitStatus();