mirror of
https://github.com/ksherlock/profuse.git
synced 2026-04-20 14:16:37 +00:00
this to smart_ptr
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@343 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -158,9 +158,9 @@ DavexDiskImage *DavexDiskImage::Create(const char *name, size_t blocks, const ch
|
||||
}
|
||||
|
||||
|
||||
BlockCachePointer DavexDiskImage::createBlockCache(BlockDevicePointer device)
|
||||
BlockCachePointer DavexDiskImage::createBlockCache()
|
||||
{
|
||||
// need a smart pointer, but only have this....
|
||||
return BlockCachePointer(new MappedBlockCache(device, 512 + (uint8_t *)address()));
|
||||
return BlockCachePointer(new MappedBlockCache(shared_from_this(), 512 + (uint8_t *)address()));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user