mirror of
https://github.com/akuker/RASCSI.git
synced 2025-09-13 15:24:46 +00:00
Cleaned up dependencies on controller manager (#964)
* Cleaned up dependencies on controller manager * Removed global fields * Simplified setting up RascsiResponse and RascsiExecutor * Got rid of remaining raw pointers * Use references instead of pointers * Improved encapsulation
This commit is contained in:
@@ -117,7 +117,7 @@ bool AbstractController::AddDevice(shared_ptr<PrimaryDevice> device)
|
||||
}
|
||||
|
||||
luns[device->GetLun()] = device;
|
||||
device->SetController(this);
|
||||
device->SetController(shared_from_this());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user