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/WrDiskCacheEntry.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/WrDiskCacheEntry.h')
| -rw-r--r-- | src/WrDiskCacheEntry.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WrDiskCacheEntry.h b/src/WrDiskCacheEntry.h index cb0036ed..ba87e3e0 100644 --- a/src/WrDiskCacheEntry.h +++ b/src/WrDiskCacheEntry.h @@ -38,8 +38,8 @@ #include "common.h" #include <set> +#include <memory> -#include "SharedHandle.h" #include "a2functional.h" #include "error_code.h" @@ -68,7 +68,7 @@ public: typedef std::set<DataCell*, DerefLess<DataCell*> > DataCellSet; - WrDiskCacheEntry(const SharedHandle<DiskAdaptor>& diskAdaptor); + WrDiskCacheEntry(const std::shared_ptr<DiskAdaptor>& diskAdaptor); ~WrDiskCacheEntry(); // Flushes the cached data to the disk and deletes them. @@ -140,7 +140,7 @@ private: int error_; error_code::Value errorCode_; - SharedHandle<DiskAdaptor> diskAdaptor_; + std::shared_ptr<DiskAdaptor> diskAdaptor_; }; } // namespace aria2 |
