diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/MultiFileAllocationIterator.cc | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/MultiFileAllocationIterator.cc')
| -rw-r--r-- | src/MultiFileAllocationIterator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MultiFileAllocationIterator.cc b/src/MultiFileAllocationIterator.cc index 58e4b22a..b2561e10 100644 --- a/src/MultiFileAllocationIterator.cc +++ b/src/MultiFileAllocationIterator.cc @@ -60,9 +60,9 @@ void MultiFileAllocationIterator::allocateChunk() if(entries_.empty()) { break; } - SharedHandle<DiskWriterEntry> entry = entries_.front(); + std::shared_ptr<DiskWriterEntry> entry = entries_.front(); entries_.pop_front(); - SharedHandle<FileEntry> fileEntry = entry->getFileEntry(); + std::shared_ptr<FileEntry> fileEntry = entry->getFileEntry(); // Open file before calling DiskWriterEntry::size() diskAdaptor_->openIfNot(entry, &DiskWriterEntry::openFile); if(entry->needsFileAllocation() && entry->size() < fileEntry->getLength()) { @@ -121,7 +121,7 @@ int64_t MultiFileAllocationIterator::getTotalLength() } } -const std::deque<SharedHandle<DiskWriterEntry> >& +const std::deque<std::shared_ptr<DiskWriterEntry> >& MultiFileAllocationIterator::getDiskWriterEntries() const { return entries_; |
