[thin_pool] Replace the member pointer by references

This commit is contained in:
Ming-Hung Tsai
2020-05-31 20:35:37 +08:00
parent 0b058a2850
commit 77adb08c3f
2 changed files with 12 additions and 12 deletions

View File

@@ -48,10 +48,10 @@ namespace thin_provisioning {
private:
friend class thin_pool;
thin(thin_dev_t dev, thin_pool *pool); // FIXME: pass a reference rather than a ptr
thin(thin_dev_t dev, thin_pool &pool);
thin_dev_t dev_;
thin_pool *pool_;
thin_pool &pool_;
};
class thin_pool {