diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 18:17:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 18:17:34 +0900 |
| commit | 2e5d9b056f2cf398d8996d93a4c7fbc1fbe66221 (patch) | |
| tree | 9f557267de4078108fd8ada3bfc1b8ec513c6f8a /src/RequestGroup.cc | |
| parent | c4e66390acb285433a519ec8ee94f67bb7464bbf (diff) | |
Removed strconcat
Diffstat (limited to 'src/RequestGroup.cc')
| -rw-r--r-- | src/RequestGroup.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index a622d8a5..35cbb737 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -793,7 +793,10 @@ bool RequestGroup::tryAutoFileRenaming() return false; } for(unsigned int i = 1; i < 10000; ++i) { - File newfile(strconcat(filepath, A2STR::DOT_C, util::uitos(i))); + std::string newfilename = filepath; + newfilename += "."; + newfilename += util::uitos(i); + File newfile(newfilename); File ctrlfile(newfile.getPath()+DefaultBtProgressInfoFile::getSuffix()); if(!newfile.exists() || (newfile.exists() && ctrlfile.exists())) { downloadContext_->getFirstFileEntry()->setPath(newfile.getPath()); |
